Skip to content

Commit

Permalink
fix playwright test
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff committed Dec 20, 2024
1 parent 9c5ea8c commit 52fdba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playwright-tests/web.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ test("onmounted", async ({ page }) => {
test("web-sys closure", async ({ page }) => {
await page.goto("http://localhost:9999");
// wait until the div is mounted
await page.waitForSelector("div#web-sys-closure-div");
await page.keyboard.press("Enter");
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");
});

0 comments on commit 52fdba9

Please sign in to comment.