Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Mar 16, 2020
1 parent 1a6cf8e commit 73e91a5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,15 @@ If you face into error messages like `UnhandledPromiseRejectionWarning: Error: P
Timeout - Async callback was not invoked within the 20000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 20000ms timeout specified by jest.setTimeout.Error:
```

and your Jest error reporting will only show that an entire test (`it()`) has failed, then you need to increase the Jest timeout because Playwright timeout > Jest timeoout and Jest in the end will simply stop the execution so no verbose (which exact line) error reporting can be shown.
and your Jest error reporting will only show that an entire test (`it()` function) has failed, then you need to increase the Jest timeout because the Playwright timeout is greater than the Jest timeout. So Jest in the end will simply stop the execution and no verbose (which exact line) error reporting can be generated.

To fix this behavior simply call

```javascript
jest.setTimeout(35 * 1000);
```

in your tests at the top.



in your tests at the top. (30 seconds is the default Playwright timeout for waiting for an specific element.)

## Inspiration

Expand Down

0 comments on commit 73e91a5

Please sign in to comment.