Assume the virtual dom is not rendering while not diffing components (#3406)
* Invert when the rendering flag is set * Add a playwright test to make sure effects, and web-sys integration is working * fix playwright test
This commit is contained in:
1 parent
cf1940cdac
commit
01ebccc269
8 files changed
+79
-15
No files matched your search
@@ -115,3 +115,12 @@ test("onmounted", async ({ page }) => {
|
||||
const mountedDiv = page.locator("div.onmounted-div");
|
||||
await expect(mountedDiv).toHaveText("onmounted was called 1 times");
|
||||
});
|
||||
|
||||
test("web-sys closure", async ({ page }) => {
|
||||
await page.goto("http://localhost:9999");
|
||||
// wait until the div is mounted
|
||||
const scrollDiv = page.locator("div#web-sys-closure-div");
|
||||
await scrollDiv.waitFor({ state: "attached" });
|
||||
await page.keyboard.press("Enter");
|
||||
await expect(scrollDiv).toHaveText("the keydown event was triggered");
|
||||
});
|
||||
Reference in new issue
Block a user