test: add H1 home page journal-post test

This commit is contained in:
2026-06-20 15:34:33 +02:00
parent ed005bae14
commit 2a8781d970
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
// @ts-check
// Tests: H1 — home page journal feed
const { test, expect } = require('@playwright/test');
// ── H1: Home page renders inline journal posts ─────────────────────────────────
test('H1: home page shows at least one inline journal-post block', async ({ page }) => {
await page.goto('/');
await expect(page.locator('.journal-post').first()).toBeVisible();
await expect(page.locator('.site-header')).toBeVisible();
});