test(browser): verify typed worker refusals across navigations

This commit is contained in:
morluto committed 2026-10-15 03:43:29 +08:00
1 parent 9b7ec809e6
commit 11f64f653e
1 file changed
+3 -3
@@ -245,7 +245,7 @@ export async function verifyScenarioServiceWorkers(endpoint, targetId) {
wait_until: "load",
},
]),
"target_not_allowed",
"service_worker_blocked",
);
await page.goto("about:blank");
await assertRejected(
@@ -257,12 +257,12 @@ export async function verifyScenarioServiceWorkers(endpoint, targetId) {
},
{ step_id: "loaded", action: "wait_for_timeout", duration_ms: 100 },
]),
"target_not_allowed",
"service_worker_blocked",
);
await page.goto("about:blank");
await assertRejected(
scenarioFor(`${first.origin}/frame`),
"target_not_allowed",
"service_worker_blocked",
);
const allowed = await provider.captureScenario(