feat(vite): support remote islands (#3294)
This commit is contained in:
@@ -289,3 +289,23 @@ Deno.test({
|
||||
sanitizeResources: false,
|
||||
sanitizeOps: false,
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name: "vite dev - remote island",
|
||||
fn: async () => {
|
||||
const fixture = path.join(FIXTURE_DIR, "remote_island");
|
||||
await launchDevServer(fixture, async (address) => {
|
||||
await withBrowser(async (page) => {
|
||||
await page.goto(`${address}`, {
|
||||
waitUntil: "networkidle2",
|
||||
});
|
||||
|
||||
await page.locator(".remote-island").wait();
|
||||
await page.locator(".increment").click();
|
||||
await waitForText(page, ".result", "Count: 1");
|
||||
});
|
||||
});
|
||||
},
|
||||
sanitizeResources: false,
|
||||
sanitizeOps: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user