fix: island rendered outside of bounding markers (#1495)

This commit is contained in:
Marvin Hagemeister
2023-07-21 17:05:05 +02:00
committed by GitHub
parent 3ab35a44f9
commit 5d07e6e9eb
9 changed files with 130 additions and 29 deletions
+36
View File
@@ -442,3 +442,39 @@ Deno.test({
sanitizeOps: false,
sanitizeResources: false,
});
Deno.test({
name: "render island inside island when passed as fn child",
async fn(_t) {
await withPageName(
"./tests/fixture_island_nesting/main.ts",
async (page, address) => {
await page.goto(`${address}/island_fn_child`);
await page.waitForSelector(".island");
await waitForText(page, "#page", "it works");
},
);
},
sanitizeOps: false,
sanitizeResources: false,
});
Deno.test({
name: "render nested islands in correct order",
async fn(_t) {
await withPageName(
"./tests/fixture_island_nesting/main.ts",
async (page, address) => {
await page.goto(`${address}/island_order`);
await page.waitForSelector(".island");
await waitForText(page, "#page", "leftcenterright");
},
);
},
sanitizeOps: false,
sanitizeResources: false,
});