Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(examples): add missing await to todomvc (#17832)

Paul Mestemaker795730f6655e
diff --git a/examples/todomvc/tests/integration.spec.ts b/examples/todomvc/tests/integration.spec.ts
index 4f53e5380a..61988a642d 100644
--- a/examples/todomvc/tests/integration.spec.ts
+++ b/examples/todomvc/tests/integration.spec.ts
@@ -300,7 +300,7 @@ test.describe('Persistence', () => {
await expect(todoItems).toHaveClass(['completed', '']);
// Ensure there is 1 completed item.
- checkNumberOfCompletedTodosInLocalStorage(page, 1);
+ await checkNumberOfCompletedTodosInLocalStorage(page, 1);
// Now reload.
await page.reload();