Adds browser tests for the page without JavaScript
The tests cover every page without JavaScript, the menu by keyboard and pointer, the fade-in at load and on scroll, and image requests per width. They found that the closed menu's shoot links could take focus, which is fixed here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,6 +50,8 @@ export interface OpenOptions {
|
||||
javaScript?: boolean;
|
||||
width?: number;
|
||||
height?: number;
|
||||
// prefers-reduced-motion: reduce, voor de tests van Reveal
|
||||
reducedMotion?: 'reduce';
|
||||
// Een onbekende URL krijgt van de server bewust status 404 (BR-SRV-05).
|
||||
// Chrome meldt dat voor het document zelf als console-fout. Alleen die ene
|
||||
// melding wordt genegeerd; elke andere fout, ook een 404 voor een bestand
|
||||
@@ -71,6 +73,7 @@ export async function openPage(
|
||||
javaScript = true,
|
||||
width = 1280,
|
||||
height = 800,
|
||||
reducedMotion,
|
||||
expectNotFound = false,
|
||||
prepare,
|
||||
}: OpenOptions = {},
|
||||
@@ -80,6 +83,7 @@ export async function openPage(
|
||||
).newContext({
|
||||
javaScriptEnabled: javaScript,
|
||||
viewport: { width, height },
|
||||
reducedMotion,
|
||||
});
|
||||
contexts.add(context);
|
||||
const page = await context.newPage();
|
||||
|
||||
Reference in New Issue
Block a user