Skip to content

Commit 07447a6

Browse files
kumibrrthetaPC
andauthored
Update modal.e2e.ts
Co-authored-by: Maria Hutt <[email protected]>
1 parent 1d2a8c6 commit 07447a6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/src/components/modal/test/sheet/modal.e2e.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,16 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
5252
config
5353
);
5454

55+
const dismissButton = page.locator('#dismiss');
56+
const openButton = page.locator('#open-modal');
57+
5558
const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent');
5659
const ionModalDidDismiss = await page.spyOnEvent('ionModalDidDismiss');
5760

58-
await page.click('#open-modal');
61+
await openButton.click();
5962
await ionModalDidPresent.next();
6063

61-
await page.click('#dismiss');
64+
await dismissButton.click();
6265
await ionModalDidDismiss.next();
6366
});
6467
});

0 commit comments

Comments
 (0)