Skip to content

Commit 3a9781d

Browse files
committed
test(mocks): drop deprecated waitForNavigation
1 parent e2ea809 commit 3a9781d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/crosslink.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ test.describe('open in playground', () => {
3535
expect(newPage.url()).toEqual(url); // new page with correct url
3636

3737
// wait until final page with editor
38-
await newPage.waitForNavigation({
39-
url: (url) => url.toString().startsWith('https://play.kotlinlang.org/#'),
40-
});
38+
await newPage.waitForURL((url) =>
39+
url.toString().startsWith('https://play.kotlinlang.org/#'),
40+
);
4141

4242
// check it exists on page
4343
await expect(newPage.locator('body')).toContainText(code);

0 commit comments

Comments
 (0)