ember-pikaday icon indicating copy to clipboard operation
ember-pikaday copied to clipboard

Add test helper to open, select date and close the Pikaday

Open lindyhopchris opened this issue 4 years ago • 2 comments

Pikaday can now be opened, a date selected, and then closed using the fillInDate test helper:

import { fillInDate } from 'ember-pikaday/test-support';

await fillInDate('.my-pikaday-input', new Date(1989, 3, 28));

This is equivalent to:

await click('.my-pikaday-input');
await Interactor.selectDate(new Date(1989, 3, 28));
await closePikaday();

Closes #231

lindyhopchris avatar Jul 23 '20 13:07 lindyhopchris

@MelSumner see you've self-requested a review on this. would be good to get this added to the addon if possible. do you need me to fix the merge conflicts or can you do that easily?

lindyhopchris avatar Feb 26 '24 11:02 lindyhopchris

@lindyhopchris If you could resolve the conflicts that would be great!

MelSumner avatar Feb 28 '24 00:02 MelSumner