From 977872b0ad16e805ea36495465f47dd313d5063c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Thu, 29 Oct 2026 15:48:52 +0100 Subject: [PATCH] Reference smoke test: drop the KNOWN 404 sitemap filter ipal-kit now leaves the page assigned as 404 out of the sitemap (unlistedPageIds, merged in 30c1015), so the smoke test checks every sitemap URL again. Verified: seed, build and 15/15 Playwright smoke tests on a throwaway MongoDB. Co-Authored-By: Claude Opus 5.5 --- reference/e2e/smoke.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/reference/e2e/smoke.spec.ts b/reference/e2e/smoke.spec.ts index 0d78aa9..827e163 100644 --- a/reference/e2e/smoke.spec.ts +++ b/reference/e2e/smoke.spec.ts @@ -68,10 +68,7 @@ for (const l of LOCALES) { test('every sitemap URL answers 200 with a title, canonical, hreflang and JSON-LD', async ({ page, request }) => { const xml = await (await request.get('/sitemap.xml')).text() - // KNOWN plugin gap (reported 2026-10-29): the sitemap lists the page assigned as 404, which answers 404. - // Remove this filter when ipal-kit leaves the notFound page out of the sitemap. - const KNOWN_404 = ['/pl/nie-znaleziono', '/en/page-not-found'] - const urls = [...xml.matchAll(/([^<]+)<\/loc>/g)].map((m) => new URL(m[1]).pathname).filter((p) => !KNOWN_404.includes(p)) + const urls = [...xml.matchAll(/([^<]+)<\/loc>/g)].map((m) => new URL(m[1]).pathname) expect(urls.length).toBeGreaterThan(20) for (const path of urls) { const res = await page.goto(path)