From d7ceab52f94e6154de0e59cd5de98051221ba9bd Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Thu, 10 Apr 2025 20:24:09 +0200 Subject: [PATCH] Add wait time to make test less flaky --- tests/custom-font.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/custom-font.spec.js b/tests/custom-font.spec.js index e834930..b893aad 100644 --- a/tests/custom-font.spec.js +++ b/tests/custom-font.spec.js @@ -71,6 +71,7 @@ test("markdown todo checkbox position with monospaced font", async ({ page }) => - [ ] Test - [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]").first()).toHaveCSS("position", "absolute") })