Skip to content

Commit

Permalink
fix e2e tests based on PR #161 and terminate the npm process after te…
Browse files Browse the repository at this point in the history
…st execution
  • Loading branch information
Sebastian Peischl committed Apr 9, 2018
1 parent 05a2500 commit fccf348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe('angular-electron App', () => {
});

it('should display message saying App works !', () => {
page.navigateTo('/');
expect(element(by.css('app-home h1')).getText()).toMatch('App works !');
});
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"electron:windows": "npm run build:prod && npx electron-builder build --windows",
"electron:mac": "npm run build:prod && npx electron-builder build --mac",
"test": "karma start ./karma.conf.js",
"pree2e:build": "webdriver-manager update --gecko false && npm run ng:serve",
"pree2e:build": "webdriver-manager update --gecko false && npm run ng serve",
"pree2e:protractor": "wait-on http-get://localhost:4200/ && protractor ./protractor.conf.js",
"e2e": "npm-run-all -p pree2e:build pree2e:protractor"
"e2e": "npm-run-all -p -r pree2e:build pree2e:protractor"
},
"dependencies": {},
"devDependencies": {
Expand Down

0 comments on commit fccf348

Please sign in to comment.