fix: wrong url after partial form submission (#2495)

Fixes https://github.com/denoland/fresh/issues/2409
This commit is contained in:
Marvin Hagemeister
2024-06-05 08:30:28 +02:00
committed by GitHub
parent a9b552945a
commit f8b60ddd15
2 changed files with 11 additions and 6 deletions
+3
View File
@@ -1484,6 +1484,9 @@ Deno.test({
await page.locator(".update").click();
await page.locator(".done-foo").wait();
const pathname = await page.evaluate(() => window.location.pathname);
expect(pathname).toEqual("/foo");
});
},
});