Skip to content

Commit c63ed67

Browse files
author
pwespi
committed
fix(e2e): chain npm script commands with &&
1 parent 268774d commit c63ed67

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ See the example test in `src/app/app.component.spec.ts` for an example of a comp
5252
End-To-End Tests (Browser-Only)
5353
-------------------------------
5454

55-
To install and update the webdriver, run `npm run e2e-update`.
56-
5755
To serve the app, run `ionic serve`.
5856

5957
To run the end-to-end tests, run (while the app is being served) `npm run e2e`.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"ionic:serve": "ionic-app-scripts serve",
1111
"test": "karma start ./test-config/karma.conf.js",
1212
"test-ci": "karma start ./test-config/karma.conf.js --single-run",
13-
"e2e": "protractor ./test-config/protractor.conf.js",
13+
"e2e": "npm run e2e-update && npm run e2e-test",
14+
"e2e-test": "protractor ./test-config/protractor.conf.js",
1415
"e2e-update": "webdriver-manager update --standalone false --gecko false"
1516
},
1617
"dependencies": {

0 commit comments

Comments
 (0)