diff --git a/test/TestExpectations.json b/test/TestExpectations.json index 22331e47605..b4c4b60b9cc 100644 --- a/test/TestExpectations.json +++ b/test/TestExpectations.json @@ -2124,13 +2124,19 @@ "expectations": ["PASS", "FAIL"] }, { - "testIdPattern": "[waittask.spec] waittask specs Frame.waitForSelector should survive cross-process navigation", + "testIdPattern": "[waittask.spec] waittask specs Frame.waitForFunction should survive cross-process navigation", "platforms": ["darwin", "linux", "win32"], "parameters": ["firefox"], "expectations": ["PASS", "FAIL"] }, { - "testIdPattern": "[waittask.spec] waittask specs Frame.waitForFunction should survive cross-process navigation", + "testIdPattern": "[waittask.spec] waittask specs Frame.waitForFunction should work when resolved right before execution context disposal", + "platforms": ["darwin", "linux", "win32"], + "parameters": ["firefox"], + "expectations": ["SKIP"] + }, + { + "testIdPattern": "[waittask.spec] waittask specs Frame.waitForSelector should survive cross-process navigation", "platforms": ["darwin", "linux", "win32"], "parameters": ["firefox"], "expectations": ["PASS", "FAIL"] diff --git a/test/src/waittask.spec.ts b/test/src/waittask.spec.ts index 9254868b9a3..22ec85709b5 100644 --- a/test/src/waittask.spec.ts +++ b/test/src/waittask.spec.ts @@ -48,6 +48,7 @@ describe('waittask specs', function () { await page.waitForFunction(() => { if (!(globalThis as any).__RELOADED) { window.location.reload(); + return false; } return true; });