test: add T6 test for entry page back pills; feat: add fixed back pill and update footer

This commit is contained in:
2026-06-20 12:31:16 +02:00
parent 58e84afebd
commit 4d87f8fef2
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -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/);
});
+1 -1
Submodule user updated: 26182ec363...ca920a9fe8