From 1e62baae0c4568ea315d34d1cef728abc4edf97c Mon Sep 17 00:00:00 2001 From: Jean-Claude Brantschen Date: Mon, 11 Nov 2024 14:41:45 +0100 Subject: [PATCH] info how to start locally cypress tests (#883) --- 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