All jobs / Automation developer / Automation Fundamentals
Automation developer interview question · 0–1 years
A new date-parsing helper is wrong on leap days. Where does the first test go?
The strongest answer
A unit test with a table of dates — I do not open a browser to prove a calendar
Why it works
Exactly. Logic belongs in a fast table. The picker gets one wiring check later.
What a good answer covers
- Logic → unit table.
- UI gets a wiring check.
- Do not screenshot arithmetic.
- Do not wait for a customer.
Answers that fall short
- Close, but not the strongest: An e2e that types every date in the datepicker
A browser is a slow calendar. - Weak: A visual screenshot of February
A picture does not prove 29 February. - Red flag: I wait for a customer to report it
Customers are not your first oracle.
Who gets asked this
More Automation Fundamentals questions
- 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?
- How do you talk about flakes with a director?
- People rerun the PR pipeline “until green.” What do you change?
- What is a fair quarantine SLA for a money-path flake?