test(overlay): fix test flakiness (#25956)

This commit is contained in:
Liam DeBeasi
2022-09-16 14:17:36 -05:00
committed by GitHub
parent d7db1333f1
commit eb6fb0d935

View File

@ -30,6 +30,12 @@ test.describe('overlays: focus', () => {
test('should not select a hidden focusable element', async ({ page, browserName }) => { test('should not select a hidden focusable element', async ({ page, browserName }) => {
await page.setContent(` await page.setContent(`
<style>
[hidden] {
display: none;
}
</style>
<ion-button id="open-modal">Show Modal</ion-button> <ion-button id="open-modal">Show Modal</ion-button>
<ion-modal trigger="open-modal"> <ion-modal trigger="open-modal">
<ion-content> <ion-content>