test(app): phone navigation waits for the drawer to close before typing

Root cause of the intermittent P1 failure at 375 px: the search was filled while the drawer's modal kept the page inert. Reproduced 1/16, then 32/32 with the wait; full shell suite 108 passed, 6 skipped by design.
This commit is contained in:
bchanot committed 2026-11-02 19:47:12 +01:00
1 parent e39f69ee6d
commit cea0f1cfec
3 files changed
+14 -3

No files matched your search

+5
View File
@@ -56,6 +56,11 @@ async function navigate(page: Page, dict: Dict, info: TestInfo, key: string) {
.getByRole('navigation')
.getByRole('link', { name: dict[key] })
.click()
// The drawer's modal keeps the page inert until its exit animation ends:
// typed text would be lost (a fill on the search box went nowhere).
await expect(
page.getByRole('dialog', { name: dict['shell.nav_label'] }),
).toHaveCount(0)
} else {
await page
.getByRole('navigation', { name: dict['shell.nav_label'] })
+5
View File
@@ -46,6 +46,11 @@ async function navigate(page: Page, dict: Dict, info: TestInfo, key: string) {
.getByRole('navigation')
.getByRole('link', { name: dict[key] })
.click()
// The drawer's modal keeps the page inert until its exit animation ends:
// typed text would be lost (a fill on the search box went nowhere).
await expect(
page.getByRole('dialog', { name: dict['shell.nav_label'] }),
).toHaveCount(0)
} else {
await page
.getByRole('navigation', { name: dict['shell.nav_label'] })