-
Sub-task
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
Right now tests in a fixture build on top of each other. Meaning we have a test that creates a report, another test that edits the report and a third one that deletes it. This has several drawbacks:
- Testcafe reloads the page between each test so that we have to manually log in and navigate to the previous state. Testcafe has no intention of fixing this or allowing us to disable this behavior
- If one test in a fixture fails, subsequent tests also fail (because the report to be edited was not created)
- Testcafe cannot parallelize the tests as they build on top of each other
Therefore, we should make the e2e tests independent from each other. In some cases like the ProcessReport tests, many of them already are. This will result in generally larger tests, moving more towards scenario- rather than feature- testing.