feat: Use href instead of origin on Partial (#1870)

This commit is contained in:
Tiago Gimenes
2023-10-07 23:07:42 +02:00
committed by GitHub
parent 2bd3271883
commit 2df5921b59
4 changed files with 54 additions and 9 deletions
+13
View File
@@ -1101,3 +1101,16 @@ Deno.test("applies f-partial on <button>", async () => {
},
);
});
Deno.test("supports relative links", async () => {
await withPageName(
"./tests/fixture_partials/main.ts",
async (page, address) => {
await page.goto(`${address}/relative_link`);
await page.waitForSelector(".status-initial");
await page.click("button");
await page.waitForSelector(".status-refreshed");
},
);
});