Skip to content

Commit

Permalink
timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart committed Nov 21, 2024
1 parent 500a99f commit faff273
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/filter/test/filter.vdiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ describe('filter', () => {
await nextFrame();
await clickElem(elem.shadowRoot.querySelector('[text="Clear"]'));
await hoverAt(0, 0);
await aTimeout(500);
await expect(elem).to.be.golden();
});
});
Expand Down Expand Up @@ -314,6 +315,7 @@ describe('filter', () => {

await clickElem(elem.shadowRoot.querySelector('[text="Clear"]'));
await hoverAt(0, 0);
await aTimeout(300);
await expect(elem).to.be.golden();
});

Expand All @@ -322,6 +324,7 @@ describe('filter', () => {

await clickElem(elem.shadowRoot.querySelector('[text="Clear"]'));
await hoverAt(0, 0);
await aTimeout(300);
await expect(elem).to.be.golden();
});

Expand All @@ -330,12 +333,14 @@ describe('filter', () => {
await clickElem(elem.shadowRoot.querySelector('d2l-list-item'));
await clickElem(elem.shadowRoot.querySelector('d2l-list-item[label="Custom date range, expand to choose dates"]'));
await hoverAt(0, 0);
await aTimeout(300);
await expect(elem).to.be.golden();
});

it('open custom date input', async() => {
const elem = await fixture(createSingleDimDateCustom({ customSelected: true, startValue: '2018-02-12T05:00:00.000Z', opened: true }));
elem.shadowRoot.querySelector('d2l-list-item[label="Custom date range, expand to choose dates"]').querySelector('d2l-input-date-time-range').setAttribute('start-opened', 'start-opened');
await aTimeout(500);
await expect(elem).to.be.golden();
});

Expand Down

0 comments on commit faff273

Please sign in to comment.