Interactive interface for browsing global, full-resolution satellite imagery
update docs, add npx for nightwatch
Mike McGann434cba502af7
diff --git a/README.md b/README.mdindex 807202afc..a13cce80d 100644--- a/README.md+++ b/README.md@@ -87,6 +87,7 @@ To update Worldview, pull down any branch or tag from GitHub. From the `master`- [Deployment](doc/deployment.md)- [Testing](doc/testing.md)- [Uploading](doc/upload.md)+- [Docker](doc/docker.md)## Contactdiff --git a/doc/docker.md b/doc/docker.mdnew file mode 100644index 000000000..9bcd1727f--- /dev/null+++ b/doc/docker.md@@ -0,0 +1,12 @@+# Docker++The following scripts are available for working with docker images and containers.++- `npm run docker:image` - Create the docker image. Also run this script to update the image when the Dockerfile changes.+- `npm run docker:reimage` - Create the docker image from scratch.+- `npm run docker:start` - Start the docker container. Once the application is built, it can be found at http://localhost:3128+- `npm run docker:stop` - Stop the docker container+- `npm run docker:restart` - Restart the docker container+- `npm run docker:e2e` - Run the end-to-end tests using Firefox in a headless environment+- `npm run docker:shell` - Run an interactive shell inside the container.+-\ No newline at end of filediff --git a/doc/testing.md b/doc/testing.mdindex d11f532e0..0f1cad031 100644--- a/doc/testing.md+++ b/doc/testing.md@@ -17,6 +17,10 @@ build a testable version of Worldview.## End-to-end TestsEnd to end tests are integrated into our CI and are required to pass before a submission is accepted. New features should be accompanied by End to End tests to cover any new functionality you add.+Run end-to-end tests using `npm run e2e`++To run the end-to-end tests using Firefox in a docker container, create an image using `npm run docker:image`. Start the container with `npm run docker:start` and run the tests with `npm run docker:e2e`.+### BrowserstackRun `npm run browserstack` to test the app in `Chrome(OS X and Windows)`, `Firefox(Windows)`, `Internet Exporer(windows)`, and `Safari(OS X)` on BrowserStack. The tests run the `nightwatch.js` features found in `./e2e/features` using Selenium.diff --git a/package.json b/package.jsonindex 514a0159b..c3e3c4a46 100644--- a/package.json+++ b/package.json@@ -45,8 +45,8 @@"docker:start": "docker run --rm --name worldview --mount type=bind,source=\"$(pwd)\",target=/build --mount type=volume,target=/build/node_modules -p 3128:3000 -d worldview","docker:stop": "docker stop -t 1 worldview ; true","e2e": "run-s --continue-on-error --silent e2e:*",- "e2e:chrome": "nightwatch -e chrome",- "e2e:firefox": "nightwatch -e firefox --skiptags wip",+ "e2e:chrome": "npx nightwatch -e chrome",+ "e2e:firefox": "npx nightwatch -e firefox --skiptags wip","getcapabilities": "bash -c 'FETCH_GC=1 tasks/buildOptions.sh'","linkcheck": "node ./tasks/linkcheck","lint": "run-s lint:*",