mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
test(overlay): fix test flakiness (#25956)
This commit is contained in:
@ -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>
|
||||||
|
Reference in New Issue
Block a user