Skip to content

Commit 6b853c5

Browse files
test(datetime): fixed test for multiple month selected
1 parent f24fe2e commit 6b853c5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

core/src/components/datetime/test/basic/datetime.e2e.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,20 @@ configs().forEach(({ title, screenshot, config }) => {
283283
const nextMonthButton = page.locator('ion-datetime .calendar-next-prev ion-button').nth(1);
284284
const monthYearButton = page.locator('ion-datetime .calendar-month-year');
285285

286+
await monthYearButton.click();
287+
await page.waitForChanges();
288+
await monthYearButton.click();
289+
await page.waitForChanges();
286290
await nextMonthButton.click();
291+
await page.waitForChanges();
292+
await page.waitForTimeout(2000);
293+
await monthYearButton.click();
294+
await page.waitForChanges();
295+
await monthYearButton.click();
296+
await page.waitForChanges();
287297
await nextMonthButton.click();
288298
await page.waitForChanges();
289-
299+
await page.waitForTimeout(2000);
290300
await monthYearButton.click();
291301
await page.waitForChanges();
292302

0 commit comments

Comments
 (0)