Add wait time to make test less flaky

This commit is contained in:
Jonatan Heyman 2025-04-10 20:24:09 +02:00
parent 94f5534611
commit d7ceab52f9

View File

@ -71,6 +71,7 @@ test("markdown todo checkbox position with monospaced font", async ({ page }) =>
- [ ] Test - [ ] Test
- [x] Test 2 - [x] Test 2
`) `)
await page.waitForTimeout(100);
expect(await page.locator("css=.cm-taskmarker-toggle input[type=checkbox]")).toHaveCount(2) expect(await page.locator("css=.cm-taskmarker-toggle input[type=checkbox]")).toHaveCount(2)
expect(await page.locator("css=.cm-taskmarker-toggle input[type=checkbox]").first()).toHaveCSS("position", "absolute") expect(await page.locator("css=.cm-taskmarker-toggle input[type=checkbox]").first()).toHaveCSS("position", "absolute")
}) })