Apply suggestions from code review
Co-authored-by: Dmitry Gozman <dgozman@gmail.com> Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
75438d4966
commit
4a302119dc
|
|
@ -308,7 +308,7 @@ test('amount', async () => {
|
|||
});
|
||||
```
|
||||
|
||||
### Compatibility with expect from Jest
|
||||
### Compatibility with expect library
|
||||
|
||||
:::note
|
||||
Do not confuse Playwright's `expect` with the [`expect` library](https://jestjs.io/docs/expect). The latter is not fully integrated with Playwright test runner, so make sure to use Playwright's own `expect`.
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ function createExpect(info: ExpectMetaInfo) {
|
|||
}
|
||||
|
||||
function throwUnsupportedExpectMatcherError() {
|
||||
throw new Error('Playwright Expect matchers are not fully compatible with Jest matchers. See https://aka.ms/playwright/expect-compatibility');
|
||||
throw new Error('It looks like you are using custom expect matchers that are not compatible with Playwright. See https://aka.ms/playwright/expect-compatibility');
|
||||
}
|
||||
|
||||
expectLibrary.setState({ expand: false });
|
||||
|
|
|
|||
Loading…
Reference in a new issue