End-to-end tests
Last updated
Last updated
To run the tests, make sure you are at the root level of the project, in your console and run the following command:
After verifying that there are no errors with the servers starting, open another tab in your terminal and run the following command:
After the test runs, you will also get some video footage of the test run which you can then analyse in more detail.
If you are like me, you might want to see some visual output. The interactive cypress environment also helps at debugging your tests, you can even time travel between individual steps and see the exact state of the app.
To use this feature, you will still run the yarn cypress:setup
above, but instead of yarn cypress:run
open another tab in your terminal and run the following command:
Check out the Cypress documentation for further information on how to write tests: https://docs.cypress.io/guides/getting-started/writing-your-first-test.html#Write-a-simple-test