jest-playwright - not able to run in headless:false or change browser
Hello,
the browser is not shown with --headless false. Every test fails with "Browser has been closed". The chromium opens for a millisecond. The only way to see chromium is start in debug mode PWDEBUG=1.
Also for every run it shows me RUNS browser: chromium even when in jest.config.js my settings are:
testEnvironmentOptions: {
'jest-playwright': {
browsers: ['firefox', 'webkit'],
I also added jest.setTimeout(35*1000) before my test.
To be frank, I am no longer using Playwright and I am not sure that is the problem. I have updated playwright along with other packages recently and perhaps there were some changes that should have been marked as breaking change. If you have an idea how to fix it I would welcome a PR.
@Bielik20 what do you use instead of Playwright?
@CharlieGreenman We use Cypress. We do consider trying out Playwright again, but it is a big decision and involves a lot of work.
@alex-scn Did you find an answer? If not I am ok to leave this issue open, but if you did please share what the problem was and we can close this.