Testing·Intermediate·Conceptual·1 min read
What makes a test flaky?
Short interview answer
Uncontrolled time, randomness, network, shared state, animation, race conditions, and ambiguous selectors commonly create nondeterminism. Fix the source and synchronize on observable state rather than adding arbitrary sleeps or retries.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.