diff --git a/package.json b/package.json index 3b052b44e..9c9cd38ae 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "commit": "", "license": "LGPL-3.0", "scripts": { - "postinstall": "./scripts/postinstall.sh", "ng": "ng", "start": "npm run validate-config && ng serve --open", "start:prod": "npm run validate-config && node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng serve --prod --open", @@ -18,8 +17,9 @@ "test": "ng test app --code-coverage", "test:ci": "npm run build.extensions && ng test adf-office-services-ext --watch=false && ng test app --code-coverage --watch=false", "lint": "ng lint && npm run spellcheck && npm run e2e.typecheck", + "update-webdriver": "./scripts/update-webdriver.sh", "e2e.typecheck": "tsc -p ./e2e/tsconfig.e2e.typecheck.json", - "e2e": "protractor --baseUrl=${TEST_BASE_URL:-http://localhost:8080/content-app} $SUITE", + "e2e": "npm run update-webdriver && protractor --baseUrl=${TEST_BASE_URL:-http://localhost:8080/content-app} $SUITE", "e2e.local": "protractor --baseUrl=http://localhost:4200 $SUITE", "wait:app": "wait-on http://${HOST_IP:-localhost}:${HOST_PORT:-8080}/alfresco/ -t 1000000", "start:docker": "./start.sh", diff --git a/scripts/ci/job_hooks/before_e2e.sh b/scripts/ci/job_hooks/before_e2e.sh index 4fd681e90..6888ce9c1 100755 --- a/scripts/ci/job_hooks/before_e2e.sh +++ b/scripts/ci/job_hooks/before_e2e.sh @@ -5,3 +5,5 @@ TO=$2; ./scripts/ci/utils/artifact-from-s3.sh -a "$FROM" -o "$TO" node "./scripts/app-config-replace.js" --config="$TO/app.config.json" -a + +npm run update-webdriver diff --git a/scripts/postinstall.sh b/scripts/update-webdriver.sh similarity index 100% rename from scripts/postinstall.sh rename to scripts/update-webdriver.sh