test(modal): remove redundant test (#25187)

This commit is contained in:
Liam DeBeasi
2022-04-25 22:53:58 +05:45
committed by GitHub
parent 7b716076b6
commit 7296b52a49

View File

@ -52,25 +52,6 @@ test.describe('sheet modal: backdrop', () => {
await input.click(); await input.click();
expect(input).toBeFocused(); 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', () => { test.describe('sheet modal: setting the breakpoint', () => {