Skip to content

Commit

Permalink
Add import for clickElem.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbatiste committed Sep 25, 2024
1 parent d3ca6bf commit 551d6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/calendar/test/calendar.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { aTimeout, expect, fixture, html, oneEvent, runConstructor, waitUntil } from '@brightspace-ui/testing';
import { aTimeout, clickElem, expect, fixture, html, oneEvent, runConstructor, waitUntil } from '@brightspace-ui/testing';
import { checkIfDatesEqual,
getDatesInMonthArray,
getNextMonth,
Expand Down Expand Up @@ -107,7 +107,7 @@ describe('d2l-calendar', () => {
it('dispatches d2l-calendar-view-change event when user changes to next month', async() => {
const calendar = await fixture(normalFixture);
const el = calendar.shadowRoot.querySelectorAll('d2l-button-icon')[1];
setTimeout(() => el.click());
clickElem(el);
const { detail } = await oneEvent(calendar, 'd2l-calendar-view-change');
await aTimeout(1);
expect(detail.minValue).to.deep.equal(new Date(2015, 8, 27));
Expand Down

0 comments on commit 551d6a8

Please sign in to comment.