Skip to content

Commit 2c8c3fb

Browse files
committed
test: fix url checks in e2e tests
1 parent f96ce80 commit 2c8c3fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/e2e/helpers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export const createWorkspace = async (
6060
await fillParameters(page, richParameters, buildParameters);
6161
await page.getByTestId("form-submit").click();
6262

63-
await expect(page).toHaveURL("/@admin/" + name);
63+
// We can't use `toHaveURL` because that causes issues with searchParams
64+
await expect(new URL(page.url()).pathname).toBe("/@admin/" + name);
6465

6566
await page.waitForSelector("*[data-testid='build-status'] >> text=Running", {
6667
state: "visible",

0 commit comments

Comments
 (0)