Skip to content

Commit

Permalink
more waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart committed Nov 19, 2024
1 parent 6a251c4 commit 0f24d88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions components/inputs/test/input-time-range.vdiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,17 @@ describe('d2l-input-time-range', () => {

it('open start', async() => {
const elem = await fixture(create({ endValue: time, startValue: laterTime }), { viewport });
await sendKeysElem(elem, 'press', 'Enter');
sendKeysElem(elem, 'press', 'Enter');
await oneEvent(elem, 'd2l-dropdown-open');
await expect(elem).to.be.golden();
});

it('open end', async() => {
const elem = await fixture(create({ endValue: time, startValue: laterTime }), { viewport });
await focusElem(elem);
await sendKeys('press', 'Tab');
await sendKeys('press', 'Enter');
sendKeys('press', 'Enter');
await oneEvent(elem, 'd2l-dropdown-open');
await expect(elem).to.be.golden();
});
});
Expand Down
6 changes: 4 additions & 2 deletions components/inputs/test/input-time.vdiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,15 @@ describe('d2l-input-time', () => {

it('dropdown open keydown top', async() => {
const elem = await fixture(create({ value: '00:15:00' }), { viewport });
await sendKeysElem(elem, 'press', 'Enter');
sendKeysElem(elem, 'press', 'Enter');
await oneEvent(elem, 'd2l-dropdown-open');
await expect(elem).to.be.golden();
});

it('dropdown open keydown selected', async() => {
const elem = await fixture(create({ value: '02:00:00' }), { viewport });
await sendKeysElem(elem, 'press', 'Enter');
sendKeysElem(elem, 'press', 'Enter');
await oneEvent(elem, 'd2l-dropdown-open');
await expect(elem).to.be.golden();
});

Expand Down

0 comments on commit 0f24d88

Please sign in to comment.