From ad6444e14c9de51cbf2a9501b9fed1fdcbff0768 Mon Sep 17 00:00:00 2001 From: Adam Gastineau Date: Mon, 10 Feb 2025 12:57:25 -0800 Subject: [PATCH] chore(test): perform action to guarantee URL updates (#34714) --- tests/library/inspector/title.spec.ts | 2 ++ 1 file changed, 2 insertions(+) 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`, );