You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, our test failed to connect the browser for some reasons...
For example, it takes much time for the browser to stand up and the connection timeout occurs.
In this situation, when executing the following command, jest-playwright doesn't rerun the failed test 😢
$ jest --onlyFailures
I'm glad that jest-playwright helps to rerun the failed tests when the connection error occurs.
Question:
Are there any workarounds to rerun the failed tests by --onlyFailures when the playwright fails to connect to the browser?
Or do you have any plan to support for this feature?
But, when the connection error occurs, the test is never retried... 😢
The log is like this.
● Test suite failed to run
browserType.connect: getaddrinfo ENOTFOUND wrong-url. Most likely ws endpoint is incorrect
at WebSocket.<anonymous> (node_modules/playwright/lib/client/browserType.js:158:28)
Describe the bug
This is not a bug, just a question.
I use
--onlyFailures
to make our tests more stable.We can use it for no-watch mode now.
jestjs/jest#10678
I use Moon which provides a browser grid.
Sometimes, our test failed to connect the browser for some reasons...
For example, it takes much time for the browser to stand up and the connection timeout occurs.
In this situation, when executing the following command, jest-playwright doesn't rerun the failed test 😢
I'm glad that jest-playwright helps to rerun the failed tests when the connection error occurs.
Question:
Are there any workarounds to rerun the failed tests by
--onlyFailures
when the playwright fails to connect to the browser?Or do you have any plan to support for this feature?
To Reproduce
Use this jest-playwright.config.js
Execute following commands
Expected behavior
jest-playwright helps to rerun the failed tests when the connection error occurs.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: