QA Fundamentals · Middle · Question 24 of 75

What is a common cause of flaky UI tests?

Show the answer

Correct answer: Fixed waits and timing assumptions about async behaviour

Explanation

sleep(2000) may be enough locally and too short in CI. Waiting for a specific condition (an element, a response) makes tests stable and faster.

Further reading

Problem with a question

QA Fundamentals · Middle · question 24

Test yourself

Take the QA Fundamentals · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz