Testing·Intermediate·Conceptual·1 min read
How do you keep e2e tests independent so they can run in parallel?
Short interview answer
Each test creates and owns its own data — a fresh user, a unique record — and cleans up or uses a disposable environment. Tests must not depend on execution order or on state left by a previous test, or parallel runs and reruns become nondeterministic.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.