Skip to content

Commit

Permalink
wait for dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart committed Nov 20, 2024
1 parent 4a3bb38 commit 3bff7b8
Showing 1 changed file with 4 additions and 2 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

0 comments on commit 3bff7b8

Please sign in to comment.