test: align release gates with canonical campaign saves
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user