Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(test): perform action to guarantee URL updates (#34714)

Adam Gastineauad6444e14c9d
diff --git a/tests/library/inspector/title.spec.ts b/tests/library/inspector/title.spec.ts
index edd73be21a..e185db2303 100644
--- a/tests/library/inspector/title.spec.ts
+++ b/tests/library/inspector/title.spec.ts
@@ -77,6 +77,8 @@ test('should update primary page URL when original primary closes', async ({
);
await page3.close();
+ // URL will not update without performing some action
+ await page4.locator('div').first().click();
await expect(recorder.recorderPage).toHaveTitle(
`Playwright Inspector - ${server.PREFIX}/grid.html`,
);