mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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');
|
await expect.soft(page.locator('#eta')).toHaveText('1 day');
|
||||||
|
|
||||||
// Avoid running further if there were soft assertion failures.
|
// Avoid running further if there were soft assertion failures.
|
||||||
expect(test.info().errors).toBeEmpty();
|
expect(test.info().errors).toHaveLength(0);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Custom Expect Message
|
## Custom Expect Message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user