Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix browserstack scripts

Josiah Sprague46618d067520
diff --git a/e2e/nightwatch-browserstack.conf.js b/e2e/nightwatch-browserstack.conf.js
index 1cc28144f..6cfdb783e 100644
--- a/e2e/nightwatch-browserstack.conf.js
+++ b/e2e/nightwatch-browserstack.conf.js
@@ -8,7 +8,7 @@ require('nightwatch-cucumber')({
cucumberArgs: [
'--compiler', 'js:babel-core/register',
'--require', 'e2e/step_definitions',
- '--format', `json:e2e/reports/cucumber-${process.argv[3]}.json`,
+ '--format', `json:e2e/reports/cucumber-${process.argv[5]}.json`,
'e2e/features'
]
});
@@ -28,7 +28,24 @@ var nightwatch_config = {
applicationCacheEnabled: false,
webStorageEnabled: false
},
- test_settings: { default: {} }
+ test_settings: {
+ default: {},
+ browserstack: {
+ desiredCapabilities: {
+ browser: 'chrome'
+ }
+ },
+ chrome: {
+ desiredCapabilities: {
+ browser: 'chrome'
+ }
+ },
+ firefox: {
+ desiredCapabilities: {
+ browser: 'firefox'
+ }
+ }
+ }
};
environments.forEach(e=>{
diff --git a/package.json b/package.json
index 3975be93e..f8a2b3d97 100644
--- a/package.json
+++ b/package.json
@@ -17,9 +17,9 @@
"start": "node ./bin/www",
"test": "grunt test lint",
"e2e": "run-s --print-name --continue-on-error --silent e2e:*",
- "e2e:chrome": "nightwatch -e chrome e2e/features/animations/animations.gif",
+ "e2e:chrome": "nightwatch -e chrome",
"e2e:firefox": "nightwatch -e firefox --skiptags hover",
- "browserstack": "node e2e/browserstack.js -c e2e/nightwatch-browserstack.conf.js -e chrome,firefox,safari,ie",
+ "browserstack": "node e2e/browserstack.js -c e2e/nightwatch-browserstack.conf.js -e browserstack",
"report": "node e2e/create-report.js"
},
"devDependencies": {