diff --git a/test/TestExpectations.json b/test/TestExpectations.json index 7a4a93f454d..7ffc0b3508e 100644 --- a/test/TestExpectations.json +++ b/test/TestExpectations.json @@ -953,6 +953,12 @@ "parameters": ["webDriverBiDi"], "expectations": ["FAIL"] }, + { + "testIdPattern": "[navigation.spec] navigation Frame.goto should reject when frame detaches", + "platforms": ["darwin", "linux", "win32"], + "parameters": ["webDriverBiDi"], + "expectations": ["PASS"] + }, { "testIdPattern": "[navigation.spec] navigation Page.goto should fail when navigating to bad SSL", "platforms": ["darwin", "linux", "win32"], @@ -2453,12 +2459,6 @@ "parameters": ["chrome", "webDriverBiDi"], "expectations": ["PASS"] }, - { - "testIdPattern": "[navigation.spec] navigation Frame.goto should reject when frame detaches", - "platforms": ["darwin", "linux", "win32"], - "parameters": ["cdp", "chrome"], - "expectations": ["FAIL", "PASS"] - }, { "testIdPattern": "[navigation.spec] navigation Frame.goto should reject when frame detaches", "platforms": ["darwin", "linux", "win32"], diff --git a/test/src/navigation.spec.ts b/test/src/navigation.spec.ts index c4e9c860446..08533482f40 100644 --- a/test/src/navigation.spec.ts +++ b/test/src/navigation.spec.ts @@ -803,7 +803,11 @@ describe('navigation', function () { return frame.remove(); }); const error = await navigationPromise; - expect(error.message).toBe('Navigating frame was detached'); + expect(error.message).atLeastOneToContain([ + 'Navigating frame was detached', + 'Error: NS_BINDING_ABORTED', + 'net::ERR_ABORTED', + ]); }); it('should return matching responses', async () => { const {page, server} = await getTestState();