Skip to content

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

docs: fix typo in soft assertions example (#14450)

Yury Semikhatskycac13c248b68
diff --git a/docs/src/test-assertions-js.md b/docs/src/test-assertions-js.md
index 439858c087..e2abcca49b 100644
--- a/docs/src/test-assertions-js.md
+++ b/docs/src/test-assertions-js.md
@@ -61,7 +61,7 @@ await expect.soft(page.locator('#status')).toHaveText('Success');
await expect.soft(page.locator('#eta')).toHaveText('1 day');
// Avoid running further if there were soft assertion failures.
-expect(test.info().errors).toBeEmpty();
+expect(test.info().errors).toHaveLength(0);
```
## Custom Expect Message