This tests the core functionality of the Staging Backend for Sparwelt.de. It uses Cypress to automate standard operations.
Simply clone this repository and use npm install
Before you can run the test you need to configure your environment variables. For this we use a .env file. To set up the variables you will need to create a file called cypress.env.json
and enter your credentials there
"admin": "...", //admin credentials to access staging at all
"admin_password": "...",
"user": "...", // your personal user credentials to log into your account
"user_password": "..."
}
After that you should be able to start the tests by calling npx cypress run
in the console. Or under Windows just double-click the .bat file.
You will see a list of all run tests in the console showing if they were successful or not. For any failures you can view the failure state in the "/cypress/screenshots" folder and they try to recreate in manually. If the test still fails then notify the backend team and create a ticket for it. After they fixed it run all tests again.