fix test assertion

This commit is contained in:
Simon Knott 2024-08-02 11:47:24 +02:00
parent 368f3a206b
commit e8fe69d08d
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -348,7 +348,7 @@ for (const kind of ['launchServer', 'run-server'] as const) {
]);
expect(browser.isConnected()).toBe(false);
const error = await page.waitForNavigation().catch(e => e);
expect(error.message).toContain(kTargetClosedErrorMessage);
expect(error.message).toContain('page.waitForNavigation: Browser closed');
});
test('should reject navigation when browser closes', async ({ connect, startRemoteServer, server }) => {