garris / garris/BackstopJS

Getting Error Navigation failed because browser has disconnected!

Open
#1,497 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

I have about 20 scenarios that are running, with following config :

```
module.exports = {
id: "backstop_default",
misMatchThreshold: 0.3,
viewports: [vp.phone, vp.tablet, vp.laptop],
onBeforeScript: "puppet/onBefore.js",
onReadyScript: "puppet/onReady.js",
scenarios,
paths: {
bitmaps_reference: "backstop_data/bitmaps_reference",
bitmaps_test: "backstop_data/bitmaps_test",
engine_scripts: "backstop_data/engine_scripts",
html_report: "backstop_data/html_report",
ci_report: "backstop_data/ci_report",
},
engine: "puppeteer",
engineOptions: {
args: ["--no-sandbox"],
},
report: [],
asyncCaptureLimit: 2,
asyncCompareLimit: 2,
debug: false,
debugWindow: false,
};
```

Sometimes, one of the tests randomly fails with following error :

```
Getting Error Navigation failed because browser has disconnected!
```

I would love if the libary could have an option to retry 2 or 3 times (configurable), as this is most likely due to too much strain on my system during the test.

Awesome library by the way !

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.