Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions e2e/mobile-menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ test("crossing to the desktop breakpoint while open releases the trap", async ({
await openDrawer(page);
await page.setViewportSize({ width: 1400, height: 900 });

// Wait for the matchMedia change event to fire and clear inert siblings.
// setViewportSize returns before the event dispatches in Playwright >=1.63.
await page.waitForFunction(
() => Array.from(document.body.children).every((el) => !el.hasAttribute("inert")),
);
const stuck = await page.evaluate(
() => Array.from(document.body.children).filter((el) => el.hasAttribute("inert")).length,
);
Expand Down
Loading
Loading