Testing front ends with confidence: unit and end-to-end tests, user-focused queries, mocks and flakiness.