codeceptjs / codeceptjs/CodeceptJS

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

Đang mở
#2,950 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug puppeteer
Ngôn ngữ chính
JavaScript
Star
4.2k
Fork
757
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
16

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.