Skip to content

Commit 2c8a649

Browse files
committed
fix e2e
1 parent b497388 commit 2c8a649

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/tests-e2e/tests/appRouter/config.redirect.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ test.describe("Next Config Redirect", () => {
7474
});
7575
test("Should properly encode the Location header for redirects with query params", async ({
7676
page,
77-
baseURL,
7877
}) => {
7978
await page.goto("/config-redirect");
8079
const responsePromise = page.waitForResponse((response) => {
@@ -86,17 +85,14 @@ test.describe("Next Config Redirect", () => {
8685

8786
const locationHeader = res.headers().location;
8887
expect(locationHeader).toBe(
89-
`${baseURL}/config-redirect/dest?q=%C3%A4%C3%B6%C3%A5%E2%82%AC`,
88+
"/config-redirect/dest?q=%C3%A4%C3%B6%C3%A5%E2%82%AC",
9089
);
9190
expect(res.status()).toBe(307);
9291

9392
const searchParams = page.getByTestId("searchParams");
9493
await expect(searchParams).toHaveText("q: äöå€");
9594
});
96-
test("Should respect already encoded query params", async ({
97-
page,
98-
baseURL,
99-
}) => {
95+
test("Should respect already encoded query params", async ({ page }) => {
10096
await page.goto("/config-redirect");
10197
const responsePromise = page.waitForResponse((response) => {
10298
return response.status() === 307;
@@ -107,7 +103,7 @@ test.describe("Next Config Redirect", () => {
107103

108104
const locationHeader = res.headers().location;
109105
expect(locationHeader).toBe(
110-
`${baseURL}/config-redirect/dest?q=%C3%A4%C3%B6%C3%A5%E2%82%AC`,
106+
"/config-redirect/dest?q=%C3%A4%C3%B6%C3%A5%E2%82%AC",
111107
);
112108
expect(res.status()).toBe(307);
113109

0 commit comments

Comments
 (0)