fix(ci): restore post-format build checks

This commit is contained in:
xixu-me committed 2026-03-31 06:13:15 +08:00
1 parent de296d39d8
commit bc26578f0a
3 files changed
+14 -4

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
declare global {
interface Window {
waitForSelector(selectorText: string): Promise<Element | null>;
}
}
export {};
+6 -3
View File
@@ -23,10 +23,13 @@ test("browser launchers include container-safe Chrome sandbox flags", () => {
test("SERP puppeteer control uses an absolute control timeout instead of a fixed post-navigation race", () => { test("SERP puppeteer control uses an absolute control timeout instead of a fixed post-navigation race", () => {
const serpPuppeteer = readProjectFile("src/services/serp/puppeteer.ts"); const serpPuppeteer = readProjectFile("src/services/serp/puppeteer.ts");
assert.match(serpPuppeteer, /waitUntil:\s*\['domcontentloaded', 'load'\]/);
assert.match( assert.match(
serpPuppeteer, serpPuppeteer,
/setTimeout\(\(\) => \{\s*resultDeferred\.reject\(new TimeoutError/, /waitUntil:\s*\[\s*["']domcontentloaded["'],\s*["']load["'],?\s*\]/,
);
assert.match(
serpPuppeteer,
/setTimeout\(\(\) => \{\s*resultDeferred\.reject\(\s*new TimeoutError/,
); );
assert.doesNotMatch(serpPuppeteer, /networkidle0/); assert.doesNotMatch(serpPuppeteer, /networkidle0/);
assert.doesNotMatch(serpPuppeteer, /await delay\(5000\)/); assert.doesNotMatch(serpPuppeteer, /await delay\(5000\)/);
@@ -73,7 +76,7 @@ test("standalone fallback search provider is available for local web search with
assert.match(fallbackProvider, /DuckDuckGo HTML fallback/i); assert.match(fallbackProvider, /DuckDuckGo HTML fallback/i);
assert.match( assert.match(
fallbackProvider, fallbackProvider,
/querySelectorAll\('\.result:not\(\.result--ad\)'\)/, /querySelectorAll\(\s*["']\.result:not\(\.result--ad\)["']/,
); );
assert.match(fallbackProvider, /ad_domain/); assert.match(fallbackProvider, /ad_domain/);
}); });
+1 -1
View File
@@ -35,7 +35,7 @@ test("security governance workflow enforces npm audit policy and uploads reports
assert.match(workflow, /name:\s+Security Governance/); assert.match(workflow, /name:\s+Security Governance/);
assert.match(workflow, /run:\s+npm run security:audit/); assert.match(workflow, /run:\s+npm run security:audit/);
assert.match(workflow, /actions\/upload-artifact@v\d+/); assert.match(workflow, /actions\/upload-artifact@v\d+/);
assert.match(workflow, /cron:\s+'31 17 \* \* 1'/); assert.match(workflow, /cron:\s+["']31 17 \* \* 1["']/);
}); });
test("security baseline file is present and ready for future exceptions", () => { test("security baseline file is present and ready for future exceptions", () => {