Daily iOS
Testing

Scope of UI tests

A travel booking app's search screen UI tests call every API against the real server, so they're slow and break often. How would you split what stays a UI test from what moves down to unit or integration tests?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Keep two or three core flows that a user really walks, from search to a completed booking, move details like sort rules and error message mapping down to unit tests, and replace the UI tests' responses with stub data passed in through launch arguments.

Share a question