Feat(full) Setup cypress for e2e (#67)
- Setup and configure cypress for e2e testing
- Add e2e testings for:
- Login with feide
- Create/delete course
- Create/edit/delete unit
- Submit/decline reflection
- Generate/download report
- Invite/enroll users
- Add cypress.env.json.template for setting environment variables for testing
- Add necessary id's to components for testing purposes
How to test:
- Makes sure the database is wiped, and then run both backend and frontend
- Go to frontend folder
- Add necessary info to cypress.env.json file
- Run "npx cypress run" to run the tests in terminal
- Run "npx cypress open" to run each test in browser
- If the tests fail make sure you delete the database and restart backend before running again
Closes #67 (closed)
Edited by Jakob Opland