Skip to content

test(modal): remove redundant test #25187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions core/src/components/modal/test/sheet/modal.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down