diff --git a/tests/ui/dailies.spec.js b/tests/ui/dailies.spec.js index 9ba75aa..e5e185b 100644 --- a/tests/ui/dailies.spec.js +++ b/tests/ui/dailies.spec.js @@ -64,3 +64,18 @@ test('T5: entry page shows city and country when set', async ({ page }) => { await expect(page.locator('.entry-location')).toContainText(KNOWN_CITY); await expect(page.locator('.entry-location')).toContainText(KNOWN_COUNTRY); }); + +// ── T6: Entry page has a fixed top back pill and a footer back pill ─────────────── +test('T6: entry page has fixed back pill at top and back pill in footer', async ({ page }) => { + const KNOWN_ENTRY = '/trips/japan-korea-2026/dailies/2026-03-25-1540-wheels-down-narita.entry'; + await page.goto(KNOWN_ENTRY); + await expect(page.locator('article.entry')).toBeVisible(); + // Fixed top pill (outside the article, before it) + const topPill = page.locator('.entry-back-fixed'); + await expect(topPill).toBeVisible(); + await expect(topPill).toHaveText(/← Back/); + // Footer pill + const footerPill = page.locator('.entry-footer .back-pill'); + await expect(footerPill).toBeVisible(); + await expect(footerPill).toHaveText(/← Back/); +}); diff --git a/user b/user index 26182ec..ca920a9 160000 --- a/user +++ b/user @@ -1 +1 @@ -Subproject commit 26182ec363e25170029ef4d6454564d4585c9cf2 +Subproject commit ca920a9fe89e7f94d3c730f6b8ed525508174e1c