garris / BackstopJS

Catch CSS curve balls.
http://backstopjs.org
MIT License
6.66k stars 602 forks source link

Getting Error Navigation failed because browser has disconnected! #1497

Open edi9999 opened 10 months ago

edi9999 commented 10 months ago

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 !