Interactive interface for browsing global, full-resolution satellite imagery
installed nightwatch and created grunt e2e testing tasks in firefox and chrome
Benjamin1cbd859b50b8
diff --git a/.gitignore b/.gitignoreindex 9cd91ee03..bae5282d0 100644--- a/.gitignore+++ b/.gitignore@@ -14,3 +14,7 @@ options\#*npm-debug.log.vagrant+# Nightwatch stuff+reports+selenium-debug.log+selenium-server-standalone-2.53.0.jardiff --git a/Gruntfile.js b/Gruntfile.jsindex bfd6b5115..6072adbbe 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -64,7 +64,35 @@ module.exports = function(grunt) {}}},-+ nightwatch: {+ options: {+ // task options++ src_folders: ["e2e"],+ standalone: true,+ // download settings+ jar_version: '2.53.0',+ server_path: "node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-2.47.1.jar",+ test_settings: {+ firefox: {+ "desiredCapabilities": {+ "browserName": "firefox"+ },+ "cli_args" : {+ "webdriver.gecko.driver" : "node_modules/geckodriver/bin/geckodriver"+ }+ },+ chrome: {+ "desiredCapabilities": {+ "browserName": "chrome"+ },+ "cli_args" : {+ "webdriver.chrome.driver" : "node_modules/chromedriver/lib/chromedriver/chromedriver"+ }+ }+ }+ }+ },coffee: {build: {expand: true,@@ -589,6 +617,7 @@ module.exports = function(grunt) {grunt.loadNpmTasks("grunt-mkdir");grunt.loadNpmTasks("grunt-text-replace");grunt.loadNpmTasks("grunt-rename");+ grunt.loadNpmTasks('grunt-nightwatch');// Lets use "clean" as a target instead of the name of the taskgrunt.renameTask("clean", "remove");@@ -646,7 +675,7 @@ module.exports = function(grunt) {"copy:dist_config_versioned"]);- grunt.registerTask("fetch", ["exec:fetch"])+ grunt.registerTask("fetch", ["exec:fetch"]);grunt.registerTask("site", ["load_branding",@@ -683,6 +712,9 @@ module.exports = function(grunt) {grunt.registerTask("distclean", ["remove:build", "remove:dist"]);grunt.registerTask("lint", ["jshint:console"]);grunt.registerTask("test", ["buster:console"]);+ grunt.registerTask("chrome-tests", ["nightwatch:chrome"]);+ grunt.registerTask("firefox-tests", ["nightwatch:firefox"]);+ grunt.registerTask("e2e", ["firefox-tests", "chrome-tests"]);grunt.registerTask("default", ["update", "build", "config", "site"]);};diff --git a/package.json b/package.jsonindex af22a0765..e7e759bf1 100644--- a/package.json+++ b/package.json@@ -12,6 +12,7 @@"babel-polyfill": "^6.16.0","bluebird": "^3.4.6","buster": "0.7.12",+ "geckodriver": "^1.2.0","grunt": "0.4.x","grunt-buster": "0.4.x","grunt-contrib-clean": "0.5.x",@@ -29,17 +30,19 @@"grunt-markdown": "0.7.x","grunt-minjson": "0.4.x","grunt-mkdir": "0.1.x",+ "grunt-nightwatch": "^0.5.4","grunt-rename": "0.1.x","grunt-text-replace": "0.4.x","jshint": "2.9.x","lodash": "^4.15.0","moment": "2.13.x",+ "nightwatch": "^0.9.9","openlayers": "3.19.x","phantomjs": "2.1.x","promise-queue": "^2.2.3","react": "^15.3.1","react-dom": "^15.3.1",+ "selenium-server-standalone-jar": "2.47.1","worldview-timeline-components": "*"}}-