mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
test(modal): remove redundant test (#25187)
This commit is contained in:
@ -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', () => {
|
||||
|
Reference in New Issue
Block a user