test: align release gates with canonical campaign saves

This commit is contained in:
2026-07-28 17:46:53 +09:00
parent 8a6c8c2cd7
commit 8cd7dd7eec
4 changed files with 11 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ for (const scriptPath of automatedBrowserChecks) {
const source = readFileSync(scriptPath, 'utf8');
assert(source.includes("from './desktop-browser-viewport.mjs'"), `${scriptPath} must import the shared browser viewport`);
assert(
/\b(?:newPage|newContext)\(desktopBrowserContextOptions\)/.test(source),
/\b(?:newPage|newContext)\(\s*desktopBrowserContextOptions\s*\)/.test(source),
`${scriptPath} must explicitly create its primary browser page or context with the shared FHD context options`
);
assert(