From 2445e7d968e500df8f3616aa3607099ec6478cb3 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 13 Apr 2026 19:14:39 +0200 Subject: [PATCH] fix(e2e): harden form check against stale Gatekeeper assets --- scripts/check-forms.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check-forms.ts b/scripts/check-forms.ts index 74db8d2b..ce877c45 100644 --- a/scripts/check-forms.ts +++ b/scripts/check-forms.ts @@ -113,8 +113,9 @@ async function main() { page.on('request', (request) => { const url = request.url(); // Intercept Next.js chunks and data to bypass Varnish 404-caching + // Includes standard /_next/ and subpath /gatekeeper/_next/ if ( - (url.includes('/_next/static/') || url.includes('/_next/data/')) && + (url.includes('/_next/static/') || url.includes('/_next/data/') || url.includes('/gatekeeper/_next/')) && !url.includes('?cb=') && !url.includes('&cb=') ) {