From 68f94a72e199507b30681cfcac40b19f2e9f4703 Mon Sep 17 00:00:00 2001 From: clean-coder Date: Mon, 8 Apr 2024 12:09:35 +0200 Subject: [PATCH] info how to start locally cypress tests --- frontend/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frontend/README.md b/frontend/README.md index 14131334eb..57be403a17 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -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