Skip to content

fix: wait for two animation frames to prevent flaky test #99

fix: wait for two animation frames to prevent flaky test

fix: wait for two animation frames to prevent flaky test #99

Triggered via pull request January 14, 2026 16:53
Status Success
Total duration 1m 22s
Artifacts 1

node.js.yml

on: pull_request
get-playwright-version
4s
get-playwright-version
Fit to window
Zoom out
Zoom in

Annotations

1 error and 1 notice
[chromium] › tests/todomvc.spec.ts:44:5 › TodoMVC - Maquette › New Todo › should clear text input field when an item is added: browser-tests/tests/TodoPage.ts#L212
1) [chromium] › tests/todomvc.spec.ts:44:5 › TodoMVC - Maquette › New Todo › should clear text input field when an item is added Error: expect(locator).toHaveValue(expected) failed Locator: locator('#new-todo') Expected: "" Received: "buy some cheese" Timeout: 10000ms Call log: - Expect "toHaveValue" with timeout 10000ms - waiting for locator('#new-todo') 14 × locator resolved to <input autofocus="" id="new-todo" placeholder="What needs to be done?"/> - unexpected value "buy some cheese" at TodoPage.ts:212 210 | */ 211 | async assertInputEmpty(): Promise<void> { > 212 | await expect(this.newTodoInput).toHaveValue(""); | ^ 213 | } 214 | 215 | /** at TodoPage.assertInputEmpty (/__w/maquette/maquette/browser-tests/tests/TodoPage.ts:212:37) at /__w/maquette/maquette/browser-tests/tests/todomvc.spec.ts:46:22
🎭 Playwright Run Summary
1 flaky [chromium] › tests/todomvc.spec.ts:44:5 › TodoMVC - Maquette › New Todo › should clear text input field when an item is added 27 passed (25.7s)

Artifacts

Produced during runtime
Name Size Digest
playwright-report Expired
901 KB
sha256:31ea62d902b27fdb4d1b695c57c57d71738f1b4e5a229ed0656b56646b73fa03