Currently we run all e2e tests in sequence in the `E2E` stage on branch builds with a headless chrome. As we surely write more and they already take ~10 minutes with ~80 tests we need to find a way to run them in parallel to some extent to maintain short build times and feedback cycles.
One idea is to parallelize using a distinct set of users per test thread. As users are isolated thanks to the permissions feature they should have no side effects on each other. Per thread we need multiple distinct users though as we also have multi-user test cases.
- a way to parallelize e2e tests is found and implemented
- for a start 2-3 parallel tests at a time should be sufficient