Open chris-miaskowski opened 5 years ago
Howdy, any plans to fix this anytime soon? Is there anything I could do to help moving that forward?
@chris-miaskowski make a PR would be a faster way 🎉
I see the same behavior using Puppeteer helper, please see:
Scenario Steps:
- I.waitForText("fail me here", 10) at Test.<anonymous> (tests/TestName_test.js:46:11)
Run with --verbose flag to see NodeJS stacktrace
FAIL | 1 passed, 2 failed // 52s
and browser is still opened.
I am using: Feature('BlaBla @blabla').config({restart: false, keepCookies: true});
@DavertMik is there any chance to fix that issue?
Thanks! 🙂
@chris-miaskowski make a PR would be a faster way
I have this in the back of my head. Once I finally get a chance to look into it would be helpful to get some directions. Does anyone know what should I be looking at in the code? More or less.
@chris-miaskowski I quickly go thru code (I am not familiar with how it is implemented atm, I think @DavertMik can help us here) and I found latest fix around it here: https://github.com/Codeception/CodeceptJS/pull/1136 - maybe it will be helpful for you where you can dig.
The same is happening whenever I use Feature('My test suite').config({ restart: false })
; Tests runs perfectly, keeping the browser state between scenarios, as intended, but then it get's stuck with browser open after last test passes, breaking my CI/CD pipeline.
Using Puppeteer. I'm looking for a command to close the browser manually meanwhile. Is there any?
What are you trying to achieve?
I'm trying to configure a single feature to keep the browser open between tests. Configuring globally is not an option because our tests are not ready to handle that yet. I want to have some tests run with browser restart: true, and others with restart: false.
I'm running the following command:
I expect the browser to close after tests are executed.
(All tests pass btw.)
What do you get instead?
Browser remains open after all tests finish.
Details
"@wdio/selenium-standalone-service": "^5.15.0",
Related but not the same: https://github.com/Codeception/CodeceptJS/issues/1069