Open samhatoum opened 6 years ago
Comment by wuthiago Thursday Sep 21, 2017 at 14:36 GMT
Instead of using chimp.js config file to change the browser, you need to pass the tag --browser=firefox in your package.json file. Example: "e2e-firefox": "./node_modules/chimp/bin/chimp.js --browser=firefox --saveScreenshotsToDisk=false --saveScreenshotsToReport=true --screenshotsOnError=true -f pretty -f json:e2e/e2e.json",
Comment by rsshilli Thursday Sep 21, 2017 at 15:05 GMT
Yeah, that would work, but with the number of options we have set, it would become unmaintainable pretty quickly.
The solution I came up with was to have a chimp-base.js file along with a chimp-chrome.js and chimp-firefox.js files that inherit the base properties and add their own. I was really hoping to have one chimp.js file and pass --browser=firefox
only when I wanted to run my tests on Firefox. Oh well.
Issue by rsshilli Wednesday Sep 20, 2017 at 17:20 GMT Originally opened as https://github.com/xolvio/chimp/issues/651
Expected behaviour
In my chimp.js config file, when I set
browser=firefox
, I expect my tests to run using Firefox.Actual behaviour
If you set a few Chrome options in the webdriverio section, even though browser=firefox, your tests will run on Chrome instead.
Exact steps to reproduce / repository that demonstrates the problem
Here's my chimp.js that runs the tests using Chrome:
Version & tools:
Also try adding
debug=true
and things go really crazy. You'll get multiple windows running tests in parallel. Everything goes crazy withdebug=true
.