fix: browser url not updated with form partials (#2236)

Fixes https://github.com/denoland/fresh/issues/2173
This commit is contained in:
Marvin Hagemeister
2024-01-10 15:36:30 +01:00
committed by GitHub
parent 6f6f551248
commit d2e9ee99a2
2 changed files with 27 additions and 19 deletions
+3
View File
@@ -1033,6 +1033,9 @@ Deno.test("submit form GET", async () => {
const url = await page.$eval(".url", (el) => el.textContent);
assertEquals(url, `${address}/form_get?name=foobar&fresh-partial=true`);
const pageUrl = page.url();
assertEquals(pageUrl, `${address}/form_get?name=foobar`);
// Server can update form value
const value = await page.$eval("input", (el) => el.value);
assertEquals(value, "foobar_foo");