feat: support f-partial on buttons (#1867)

This commit is contained in:
Marvin Hagemeister
2023-10-05 13:53:51 +02:00
committed by GitHub
parent 776a721332
commit 6598eb39a0
5 changed files with 239 additions and 154 deletions
+13
View File
@@ -1088,3 +1088,16 @@ Deno.test("does not merge duplicate <head> content", async () => {
},
);
});
Deno.test("applies f-partial on <button>", async () => {
await withPageName(
"./tests/fixture_partials/main.ts",
async (page, address) => {
await page.goto(`${address}/button`);
await page.waitForSelector(".status-initial");
await page.click("button");
await page.waitForSelector(".status-updated");
},
);
});