From 37aa6052c689ce509b1564e33244119fdbd21d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Wed, 11 Nov 2026 20:47:38 +0100 Subject: [PATCH] test(pwa): tap a visible dashboard link in the offline journey The desktop shell renders the bottom bar's links too; pick the first one that is visible so the tap lands on the sidebar. --- e2e/pwa-offline.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/pwa-offline.spec.ts b/e2e/pwa-offline.spec.ts index b71d67ac0..7276c786b 100644 --- a/e2e/pwa-offline.spec.ts +++ b/e2e/pwa-offline.spec.ts @@ -45,7 +45,7 @@ test.describe("offline, with the service worker", () => { await expect(page.locator('[data-slot="offline-banner"]')).toBeVisible(); // A tap on the dashboard link stays on the open page. - await page.locator('a[href="/"]').first().click(); + await page.locator('a[href="/"]:visible').first().click(); await expect( page .locator("[data-sonner-toast]")