fix: decode params used in query object in buildLegacyCtx (#19253)

* fix: decode params used in query object in buildLegacyCtx

* add tests

* fix
This commit is contained in:
Benny Joo authored and GitHub committed 2025-02-12 07:58:46 +00:00
1 parent e800341485
commit 4fbeff31e7
2 files changed
+15 -1

No files matched your search

+14
View File
@@ -63,6 +63,20 @@ test("check SSR and OG - User Event Type", async ({ page, users }) => {
todo("check SSR and OG - Team Event Type");
test.describe("user with a special character in the username", () => {
test("/[user] page shouldn't 404", async ({ page, users }) => {
const user = await users.create({ username: "franz-janßen" });
const response = await page.goto(`/${user.username}`);
expect(response?.status()).not.toBe(404);
});
test("/[user]/[type] page shouldn't 404", async ({ page, users }) => {
const user = await users.create({ username: "franz-janßen" });
const response = await page.goto(`/${user.username}/30-min`);
expect(response?.status()).not.toBe(404);
});
});
test.describe("free user", () => {
test.beforeEach(async ({ page, users }) => {
const free = await users.create(freeUserObj);