From 3bff7b8b624d98c57e0bc3391758847267cd2e2d Mon Sep 17 00:00:00 2001 From: Dave Lockhart Date: Wed, 20 Nov 2024 15:36:05 -0500 Subject: [PATCH] wait for dropdown --- components/inputs/test/input-time-range.vdiff.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/inputs/test/input-time-range.vdiff.js b/components/inputs/test/input-time-range.vdiff.js index 9c28af10d3e..51cf336251b 100644 --- a/components/inputs/test/input-time-range.vdiff.js +++ b/components/inputs/test/input-time-range.vdiff.js @@ -173,7 +173,8 @@ 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(); }); @@ -181,7 +182,8 @@ describe('d2l-input-time-range', () => { 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(); }); });