Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

headless e2e testing

Jason Kent28e6af3d8517
diff --git a/nightwatch.conf.js b/nightwatch.conf.js
index 4bac584ca..a8ecd2db3 100644
--- a/nightwatch.conf.js
+++ b/nightwatch.conf.js
@@ -34,11 +34,30 @@ module.exports = {
}
}
},
+ chromeHeadless: {
+ desiredCapabilities: {
+ browserName: 'chrome',
+ 'goog:chromeOptions': {
+ w3c: false,
+ prefs: { 'profile.managed_default_content_settings.notifications': 1 },
+ args : [ "headless", "no-sandbox", "disable-gpu" ]
+ }
+ }
+ },
firefox: {
desiredCapabilities: {
browserName: 'firefox',
javascriptEnabled: true
}
+ },
+ firefoxHeadless: {
+ desiredCapabilities: {
+ browserName: 'firefox',
+ javascriptEnabled: true,
+ 'moz:firefoxOptions': {
+ args: ['--headless']
+ }
+ }
}
}
};