From cd45bf6042f5976053063d8416e7a7330d44dc17 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 13 Oct 2017 09:58:48 -0300 Subject: [PATCH] Adding standalone selenium in case someone wants to run then locally --- package.json | 3 +++ scripts/e2e-local.sh | 1 + 2 files changed, 4 insertions(+) create mode 100755 scripts/e2e-local.sh diff --git a/package.json b/package.json index 1a5f80f2e..1f4a78671 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,8 @@ "lint-fix": "yarn lint --fix", "jest-watch": "TEST_MODE=unit NODE_ENV=test jest --watch", "e2e": "./scripts/e2e.js", + "pree2e-local": "./scripts/e2e-local.sh", + "e2e-local": "nightwatch --config nightwatch-local.conf.js", "test": "TEST_MODE=unit NODE_ENV=test jest && TEST_MODE=unit NODE_ENV=test mocha -R ${MOCHA_REPORTER:-spec}", "test-cover": "TEST_MODE=unit NODE_ENV=test istanbul cover _mocha --report text --check-coverage -- -R spec", "heroku-postbuild": "./bin/cli plugins reconcile && yarn build", @@ -170,6 +172,7 @@ "redux": "^3.6.0", "redux-thunk": "^2.1.0", "resolve": "^1.4.0", + "selenium-standalone": "^6.9.0", "semver": "^5.4.1", "simplemde": "^1.11.2", "smoothscroll-polyfill": "^0.3.5", diff --git a/scripts/e2e-local.sh b/scripts/e2e-local.sh new file mode 100755 index 000000000..29874b971 --- /dev/null +++ b/scripts/e2e-local.sh @@ -0,0 +1 @@ +selenium-standalone install \ No newline at end of file