chore(test): perform action to guarantee URL updates

This commit is contained in:
Adam Gastineau 2025-02-10 11:46:56 -08:00
parent 2f8d448dbb
commit c956c51714

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`,
); );