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

This commit is contained in:
Adam Gastineau 2025-02-10 12:57:25 -08:00 committed by GitHub
parent aeed1f5909
commit ad6444e14c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,6 +77,8 @@ test('should update primary page URL when original primary closes', async ({
); );
await page3.close(); await page3.close();
// URL will not update without performing some action
await page4.locator('div').first().click();
await expect(recorder.recorderPage).toHaveTitle( await expect(recorder.recorderPage).toHaveTitle(
`Playwright Inspector - ${server.PREFIX}/grid.html`, `Playwright Inspector - ${server.PREFIX}/grid.html`,
); );