简体   繁体   中英

How to run backstop.js with Firefox on Ubuntu?

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 })

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM