We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
waitForNavigation
1 parent e2ea809 commit 3a9781dCopy full SHA for 3a9781d
tests/crosslink.e2e.ts
@@ -35,9 +35,9 @@ test.describe('open in playground', () => {
35
expect(newPage.url()).toEqual(url); // new page with correct url
36
37
// wait until final page with editor
38
- await newPage.waitForNavigation({
39
- url: (url) => url.toString().startsWith('https://play.kotlinlang.org/#'),
40
- });
+ await newPage.waitForURL((url) =>
+ url.toString().startsWith('https://play.kotlinlang.org/#'),
+ );
41
42
// check it exists on page
43
await expect(newPage.locator('body')).toContainText(code);
0 commit comments