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);
|
||||
});
|
||||
|
||||
// ── 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 ──────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user