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

This commit is contained in:
Yury Semikhatsky 2022-05-27 10:57:03 -07:00 committed by GitHub
parent 3d83569e5c
commit cac13c248b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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