feat: collect partials deeply from response (#1860)

This commit is contained in:
Marvin Hagemeister
2023-10-04 22:33:27 +02:00
committed by GitHub
parent 3b73449a93
commit 9018024b7e
6 changed files with 243 additions and 146 deletions
+13
View File
@@ -115,6 +115,19 @@ Deno.test("injects content with island and keeps island instance alive", async (
);
});
Deno.test("finds partial nested in response", async () => {
await withPageName(
"./tests/fixture_partials/main.ts",
async (page, address) => {
await page.goto(`${address}/deep_partial`);
await page.waitForSelector(".status");
await page.click(".update-link");
await waitForText(page, ".status-updated", "updated");
},
);
});
Deno.test("unmounts island", async () => {
await withPageName(
"./tests/fixture_partials/main.ts",