How to run backstop.js with Firefox on Ubuntu?

369 Views Asked by At

How to run backstop.js with Firefox because in the official documentation for property engine I can set only chromy or puppeteer engine instance in the config file

module.exports = options => ({
    id: "zing-web",
    viewports: [
        {
            label: "laptop",
            width: 1366,
            height: 920
        }
    ],
    onBeforeScript: "puppet/onBefore.js",
    onReadyScript: "puppet/onReady.js",
    scenarios: options.scenarios,
    paths: options.paths,
    engine: "puppeteer",
    engineOptions: {
        args: ["--no-sandbox"]
    },
    report: ["CI"],
    asyncCompareLimit: options.asyncScreens || 10, // Capturing screens in parallel
    asyncCaptureLimit: options.asyncScreens || 50, // Comparing screens in parallel
    debug: options.debug,
    debugWindow: options.debug
})

1

There are 1 best solutions below

0
Avanish Patel On

As of today there is no official support for Firefox browsers with Backstopjs. However you can use it with Playwright engine that supports Chromium, Firefox and Webkit (Safari for MacOS).