test: update N4 — filter bar replaces trip nav link to dailies
This commit is contained in:
@@ -33,11 +33,10 @@ test('N3: /trips/japan-korea-2026/stats page loads with site header', async ({ p
|
|||||||
expect(errors).toHaveLength(0);
|
expect(errors).toHaveLength(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
// ── N4: "Journal" nav link goes to /dailies ───────────────────────────────────
|
// ── N4: trip page has Journal filter button (replaced nav link) ───────────────
|
||||||
test('N4: Journal nav link navigates to /dailies', async ({ page }) => {
|
test('N4: trip page filter bar has Journal button', async ({ page }) => {
|
||||||
await page.goto('/');
|
await page.goto('/trips/japan-korea-2026');
|
||||||
await page.click('nav a[href*="dailies"]');
|
await expect(page.locator('.trip-filter-btn[data-filter="journal"]')).toBeVisible();
|
||||||
await expect(page).toHaveURL(/\/dailies/);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// ── N5: "Map" nav link goes to /map ──────────────────────────────────────────
|
// ── N5: "Map" nav link goes to /map ──────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user