Skip to content

Commit 2371946

Browse files
committed
chore(e2e): fix e2e
1 parent 77fe5ee commit 2371946

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

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

196+
const firstEnabledDay = datetime.locator('.calendar-day:not([disabled])').first();
197+
await firstEnabledDay.click();
198+
await page.waitForChanges();
199+
196200
await modal.evaluate((el: HTMLIonModalElement) => el.dismiss());
197201
await ionModalDidDismiss.next();
198202
};
199203

200204
await openAndInteract();
201-
202-
const firstEnabledDay = datetime.locator('.calendar-day:not([disabled])').first();
203-
await firstEnabledDay.click();
204-
await page.waitForChanges();
205-
206205
await openAndInteract();
207206
});
208207
});

0 commit comments

Comments
 (0)