All jobs / Automation developer / Automation Fundamentals
Automation developer interview question · 0–1 years
A UI test fails one in four CI runs. What is it?
The strongest answer
A defect in the test, the waits, or the product — I isolate it and I do not hide it behind retries until green
Why it works
Exactly. A flake is unpaid work. Quarantine with an owner if you must; do not retry your way honest.
What a good answer covers
- Treat flakes as defects.
- Quarantine with an owner.
- Do not retry to green.
- Do not delete the only signal.
Answers that fall short
- Close, but not the strongest: Normal UI weather; I add retry: 5
Retries make the lie faster. - Weak: Proof the test was useless; I delete it
Some flakes are real races. Deleting throws away the witness. - Red flag: A reason to ignore CI on Fridays
Calendar rules are not a root cause.
Who gets asked this
More Automation Fundamentals questions
- A PR adds a test that Playwright can click a native checkbox. What do you say?
- A test logs in, updates the profile, buys, refunds, and checks the invoice PDF. What do you do?
- A new date-parsing helper is wrong on leap days. Where does the first test go?
- How do you debug a flake that only happens in CI?
- The framework offers retries: 2 on every test. When do you use it?
- You quarantine a flake. What else is required?
- When do you stub the payment API in a UI test?
- The UI pack is 70% of runtime and finds 10% of bugs. What do you do?