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:
Max Schmitt 2024-07-17 12:32:31 +02:00 committed by GitHub
parent 75438d4966
commit 4a302119dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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 });