Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"eslint-plugin-sorting": "git://github.com/shane-tomlinson/eslint-plugin-sorting.git#bcacb99d",
"firefox-profile": "0.3.12",
"fxa-conventional-changelog": "1.1.0",
"geckodriver": "1.0.1",
"grunt-amdcheck": "1.3.2",
"grunt-bump": "0.7.0",
"grunt-contrib-csslint": "1.0.0",
Expand Down
6 changes: 6 additions & 0 deletions tests/tools/firefox_profile_creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

var UA_OVERRIDE = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:40.0) Gecko/20100101 Firefox/40.0 FxATester/1.0';

var path = require('path');

var FirefoxProfile = require('firefox-profile');
var myProfile = new FirefoxProfile();
var profile = null;
Expand Down Expand Up @@ -41,6 +43,10 @@ if (profile) {
// disable signed extensions
// the WebDriver extension will not work where signed extensions are forced
myProfile.setPreference('xpinstall.signatures.required', false);
// Firefox 48+ requires marionette settngs
myProfile.setPreference('marionette', true);
myProfile.setPreference('webdriver.gecko.driver', path.join(__dirname, 'node_modules', 'geckodriver', 'geckodriver'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't really work


// disable WebDriver extension compat check
myProfile.setPreference('extensions.checkCompatibility.47.0', false);
myProfile.setPreference('extensions.checkCompatibility.48.0', false);
Expand Down