test(search): add url-targetable pagefind browser regression

Cover the Native Support filter with a Playwright-backed Vitest case
that can boot the local dev server or attach to a deployed URL so the
same regression can gate post-deploy verification.
This commit is contained in:
ThatGuySam 2026-03-15 19:27:25 -05:00
parent a1ae595717
commit 3dcf7da638
4 changed files with 310 additions and 0 deletions

View file

@ -30,6 +30,9 @@
"test-postbuild-api": "pnpm test-listings",
"test-vitest": "vitest",
"test": "vitest run",
"test:browser": "vitest run --config vitest.playwright.config.mjs",
"test:browser:pagefind": "vitest run --config vitest.playwright.config.mjs test/playwright/pagefind-native-filter.playwright.js",
"test:browser:pagefind:live": "PLAYWRIGHT_BASE_URL=https://doesitarm.com vitest run --config vitest.playwright.config.mjs test/playwright/pagefind-native-filter.playwright.js",
"dev": "pnpm run dev-astro",
"build": "pnpm run generate-astro",
"build-api": "pnpm run clone-readme && pnpm exec vite-node build-lists.js -- --with-api --no-lists",
@ -142,6 +145,7 @@
"node-fetch": "^2.6.1",
"nodemon": "^1.11.0",
"npm-run-all": "^4.1.5",
"playwright-core": "^1.58.2",
"postcss": "^8.2.4",
"postcss-cli": "^8.3.1",
"replace-css-url": "^1.2.6",