mirror of
https://github.com/heyman/heynote.git
synced 2025-06-28 05:21:48 +02:00
Add wait time to make test less flaky
This commit is contained in:
parent
94f5534611
commit
d7ceab52f9
@ -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")
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user