Testing · Senior · Question 21 of 75
How should test data be organized for E2E tests that run in parallel against a shared environment?
- ✓Correct answer: Each test creates its own unique data (e.g. via API with a unique id) and doesn't rely on what other tests create
- 2All tests use one shared admin user and one shared order
- 3Run all E2E tests sequentially
Explanation
Shared records cause collisions when tests run in parallel. Seeding through the API is faster than through the UI.