Skip to content

Commit c044032

Browse files
committed
use built in url assertion
1 parent ec4786e commit c044032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/test/apps/basics/test/client.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,6 @@ test.describe('routing', () => {
16411641
await page.click('a[href="/routing"]');
16421642
await page.click('a[href="/routing"]');
16431643
await expect(page.locator('h1')).toHaveText('Great success!');
1644-
expect(new URL(page.url()).pathname).toBe('/routing');
1644+
await expect(page).toHaveURL((url) => url.pathname === '/routing');
16451645
});
16461646
});

0 commit comments

Comments
 (0)