test: update N4 — filter bar replaces trip nav link to dailies

This commit is contained in:
2026-06-19 21:50:41 +02:00
parent 5e864b0c03
commit 3c35176b90
+4 -5
View File
@@ -33,11 +33,10 @@ test('N3: /trips/japan-korea-2026/stats page loads with site header', async ({ p
expect(errors).toHaveLength(0);
});
// ── N4: "Journal" nav link goes to /dailies ───────────────────────────────────
test('N4: Journal nav link navigates to /dailies', async ({ page }) => {
await page.goto('/');
await page.click('nav a[href*="dailies"]');
await expect(page).toHaveURL(/\/dailies/);
// ── N4: trip page has Journal filter button (replaced nav link) ───────────────
test('N4: trip page filter bar has Journal button', async ({ page }) => {
await page.goto('/trips/japan-korea-2026');
await expect(page.locator('.trip-filter-btn[data-filter="journal"]')).toBeVisible();
});
// ── N5: "Map" nav link goes to /map ──────────────────────────────────────────