codeceptjs / codeceptjs/CodeceptJS

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

未關閉
#2,950 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug puppeteer
主要語言
JavaScript
星號
4.2k
分支
757
平均合併
2 天 9 小時
30 天內合併 PR
16

描述

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?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。