diff --git a/core/src/utils/test/overlays/overlays.e2e.ts b/core/src/utils/test/overlays/overlays.e2e.ts index 54f40bb3c3..d663c58648 100644 --- a/core/src/utils/test/overlays/overlays.e2e.ts +++ b/core/src/utils/test/overlays/overlays.e2e.ts @@ -108,33 +108,6 @@ test.describe('overlays: focus', () => { test.beforeEach(({ skip }) => { skip.rtl(); }); - test('should not focus the overlay container if element inside of overlay is focused', async ({ page }) => { - await page.setContent(` - Show Modal - - - - - - `); - - const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent'); - const ionModalWillPresent = await page.spyOnEvent('ionModalWillPresent'); - const button = page.locator('ion-button'); - const input = page.locator('input'); - - await button.click(); - - await ionModalWillPresent.next(); - - await input.evaluate((el: HTMLInputElement) => el.focus()); - - await ionModalDidPresent.next(); - await page.waitForChanges(); - - await expect(input).toBeFocused(); - }); - test('should not select a hidden focusable element', async ({ page, browserName }) => { await page.setContent(`