Skip to content

Commit c07b0e9

Browse files
committed
chore(date-time): e2e test cleanup
1 parent a6f0eb3 commit c07b0e9

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

core/src/components/datetime-button/test/overlays/datetime-button.e2e.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,16 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
191191
const calendarBody = datetime.locator('.calendar-body');
192192
await expect(calendarBody).toBeVisible();
193193

194-
const firstEnabledDay = datetime.locator('.calendar-day:not([disabled])').first();
195-
await firstEnabledDay.click();
196-
await page.waitForChanges();
197-
198194
await modal.evaluate((el: HTMLIonModalElement) => el.dismiss());
199195
await ionModalDidDismiss.next();
200196
};
201197

202198
await openAndInteract();
199+
200+
const firstEnabledDay = datetime.locator('.calendar-day:not([disabled])').first();
201+
await firstEnabledDay.click();
202+
await page.waitForChanges();
203+
203204
await openAndInteract();
204205
});
205206
});

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,6 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
445445

446446
const calendarBody = datetime.locator('.calendar-body');
447447
await expect(calendarBody).toBeVisible();
448-
449-
const firstEnabledDay = datetime.locator('.calendar-day:not([disabled])').first();
450-
await firstEnabledDay.click();
451-
await page.waitForChanges();
452448
});
453449
});
454450
});

0 commit comments

Comments
 (0)