Compares the preview server with real nginx in tests
The preview server must behave like the real server, or Lighthouse and the browser tests prove the wrong thing. The tests also cover the new URLs in a real browser: one redirect, one title, a clean hydration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -120,8 +120,8 @@ describe.each(paths)('rauwe HTML van %s', (path) => {
|
||||
|
||||
describe('rauwe HTML van 404.html', () => {
|
||||
it('heeft één titel, één noindex en geen beschrijving of canonical', async () => {
|
||||
// 404.html als bestand: status 200 (BR-SRV-04)
|
||||
const { html, document } = await fetchDocument('/404.html');
|
||||
// 404.html als URL is een echte 404 (BR-HST-05)
|
||||
const { html, document } = await fetchDocument('/404.html', 404);
|
||||
const titles = document.querySelectorAll('title');
|
||||
expect(titles).toHaveLength(1);
|
||||
expect(titles[0].textContent).toBe(
|
||||
|
||||
Reference in New Issue
Block a user