docs: fix typo in soft assertions example (#14450)
This commit is contained in:
parent
3d83569e5c
commit
cac13c248b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue