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
When using the connect method to run tests, one additional blank session is getting created per run on cloud browser providers, for example, 5 sessions for a 4 test suite. When openBrowser method in global.js gets called during setup, it creates a session which is not used to run any tests.
To Reproduce
Run a basic test on BrowserStack, with say 2 tests. Sample
Expected behavior
Ideally 2 sessions should be seen on the BrowserStack dashboard but currently you'd see three sessions two corresponding to the two tests but an extra third one as a blank session.
How do you propose this is fixed? I don't think there is anything we can change in jest-puppeteer to fix this. This seems like an issue with browser stack.
Could have a flag/config option to avoid the connect call inside global.js and here use the wsEndPoint provided in config. This would use the connect method here to run the tests.
🐛 Bug Report
When using the connect method to run tests, one additional blank session is getting created per run on cloud browser providers, for example, 5 sessions for a 4 test suite. When openBrowser method in global.js gets called during setup, it creates a session which is not used to run any tests.
To Reproduce
Run a basic test on BrowserStack, with say 2 tests.
Sample
Expected behavior
Ideally 2 sessions should be seen on the BrowserStack dashboard but currently you'd see three sessions two corresponding to the two tests but an extra third one as a blank session.
Link to repl or repo (highly encouraged)
Repo
Docs
Issues without a reproduction link are likely to stall.
Run
npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: