From 7296b52a49e66282182261e463c87dffce8bb21c Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 25 Apr 2022 22:53:58 +0545 Subject: [PATCH] test(modal): remove redundant test (#25187) --- .../components/modal/test/sheet/modal.e2e.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/core/src/components/modal/test/sheet/modal.e2e.ts b/core/src/components/modal/test/sheet/modal.e2e.ts index c996fd432f..498eb4a639 100644 --- a/core/src/components/modal/test/sheet/modal.e2e.ts +++ b/core/src/components/modal/test/sheet/modal.e2e.ts @@ -52,25 +52,6 @@ test.describe('sheet modal: backdrop', () => { await input.click(); expect(input).toBeFocused(); }); - test('input outside sheet modal should not be focusable when backdrop is active', async ({ page }) => { - const ionModalDidPresent = await page.spyOnEvent('ionModalDidPresent'); - - await page.click('#backdrop-active'); - - await ionModalDidPresent.next(); - - const input = await page.locator('#root-input input'); - - /** - * Input is behind the active backdrop - * so users will click the backdrop first - * before getting the input. Using force - * allows us to test focus trapping even - * when the backdrop is enabled. - */ - await input.click({ force: true }); - expect(input).not.toBeFocused(); - }) }); test.describe('sheet modal: setting the breakpoint', () => {