Puppeteer: using restart: false during tests will let browser stuck
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript
- 領域
- testing-qa
研究方向
先從 Puppeteer helper 對動態 .config({ restart: false }) 設定的處理,以及某個 feature 完成後的瀏覽器生命週期著手。在停用 restart 的情況下重現分組的 feature,接著將其與預設的 restart 設定比較,並確認 test queue 在最後一個 scenario 之後仍會繼續。
由索引模型根據 Issue 內容生成。
描述
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?
- 主要語言
- JavaScript
- 星號
- 4.2k
- 分支
- 756
- 平均合併
- 2 天 9 小時
- 30 天內合併 PR
- 16
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
codeceptjs/CodeceptJS 的其他 Issue
-
stale
難度 2/5 1-3 小時 新手友好度 72/100
codeceptjs/CodeceptJS#5420 · 1 則留言 ·
-
stale
難度 2/5 1-3 小時 新手友好度 76/100
codeceptjs/CodeceptJS#5358 · 1 則留言 ·
-
stale
難度 2/5 1-3 小時 新手友好度 78/100
codeceptjs/CodeceptJS#4958 · 10 則留言 · 2 個 reaction ·
-
stale
難度 1/5 1 小時以內 新手友好度 72/100
codeceptjs/CodeceptJS#4778 · 3 則留言 ·
-
stale
難度 4/5 3-5 天 新手友好度 38/100
codeceptjs/CodeceptJS#5618 · 1 則留言 ·
查看 codeceptjs/CodeceptJS 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id 未關閉bug
難度 2/5 1-3 小時 新手友好度 75/100
nightscout/nocturne#1414 ·
-
bug v2
難度 2/5 1-3 小時 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 則留言 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
難度 2/5 1-3 小時 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·