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.
This commit is contained in:
Marc-André Bombeck committed 2026-11-11 20:47:38 +01:00
1 parent 00c56b0dd5
commit 37aa6052c6
1 file changed
+1 -1
+1 -1
View File
@@ -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]")