mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
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:
1 parent
00c56b0dd5
commit
37aa6052c6
1 file changed
+1
-1
@@ -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]")
|
||||
|
||||
Reference in new issue
Block a user