Skip to content

Commit

Permalink
fix(tests): change run cypress tests for faster local run. Refactor t…
Browse files Browse the repository at this point in the history
…est for making them readable (#3742)

* fix(tests): change run cypress tests for faster local run

* fix(tests): update cypress to latest version

* fix(tests): applying review comments

* fix(tests): update travis.yaml and package-lock.json
  • Loading branch information
YevheniiaMazur authored and valorkin committed Mar 29, 2018
1 parent 3a384d9 commit c7b91fa
Show file tree
Hide file tree
Showing 28 changed files with 1,638 additions and 740 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,9 @@ jobs:

# test cypress
- stage: cypress-tests
env: URL=http://localhost:3000/
before_script:
- npm run build:dynamic
- node ./demo/dist/server.js &
- sleep 3
script:
- CYPRESS_baseUrl=$URL npm run cy:run -- --config videoRecording=false
env: URL=localhost:4200/#
before_script: ng serve --prod &
script: $(npm bin)/wait-on http-get://$URL && npm run cy:run

# check prod build
- &build
Expand Down
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"baseUrl": "http://localhost:4400/#"
"baseUrl": "http://localhost:4200/#"
}
156 changes: 0 additions & 156 deletions cypress/integration/accordion_page_spec.ts

This file was deleted.

150 changes: 0 additions & 150 deletions cypress/integration/alerts_page_spec.ts

This file was deleted.

Loading

0 comments on commit c7b91fa

Please sign in to comment.