Skip to content

Commit ad6444e

Browse files
authored
chore(test): perform action to guarantee URL updates (#34714)
1 parent aeed1f5 commit ad6444e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/library/inspector/title.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ test('should update primary page URL when original primary closes', async ({
7777
);
7878

7979
await page3.close();
80+
// URL will not update without performing some action
81+
await page4.locator('div').first().click();
8082
await expect(recorder.recorderPage).toHaveTitle(
8183
`Playwright Inspector - ${server.PREFIX}/grid.html`,
8284
);

0 commit comments

Comments
 (0)