CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Puppeteer: using restart: false during tests will let browser stuck

Open jedicwb opened this issue 4 years ago • 2 comments

Hi. I'm trying to use persistent browser state with Puppeteer so multiple scenarios can be run without browser restarts between them. Since all other tests are arranged with the default restart config, I'm trying to use the dynamic .config('restart: false') in one single suite, like so:

Feature('My grouped tests in one feature').config({ restart: false });
// hooks and scenarios 

Tests themselves behave exactly as intended. The problem is, after the last test finishes and passes, the browser will remain open, stuck, preventing the test queue to continue.

Since I'm running tests on a pipeline, this is preventing me to use this feature.

I noticed this have been reported before for WebDriverIO.

Is there any workaround for this?

jedicwb avatar Jul 12 '21 13:07 jedicwb

Nothing?

jedicwb avatar Aug 27 '21 11:08 jedicwb

@DavertMik, pretty please? I tried looking it up myself but no luck so far.

jedicwb avatar Oct 13 '21 15:10 jedicwb