Skip to content

Commit

Permalink
info how to start locally cypress tests (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
clean-coder authored Nov 11, 2024
1 parent 8728b0d commit 1e62baa
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@ For generating the coverage of our frontend specs (jest), you can use following

This generates the coverage, you can see it in `frontend/coverage/lcov-report/index.html`.
Open the html file in browser and you get a beautiful overview

## Cypress Tests

- local setup
- start local Docker `docker-compose up`
- start local Server: `OkrApplication-E2E`
- start local Client: `npm run start`
- run selected Tests
- npm run `npm run cypress:open`
- in Cypress App, select `E2E Testing` and `Chrome` as Browser
- run all tests
- npm run `npm run cypress:run`
- in Cypress App, select `E2E Testing` and `Chrome` as Browser
- in case of failing Tests:
- stop and restart local Server
- stop and restart local Client
- re-run Cypress Tests

0 comments on commit 1e62baa

Please sign in to comment.