The Magic of UI Testing
summary
Shows concrete Xcode UI testing tactics: use XCUIApplication to launch the app, pass launch arguments like -reset or skip onboarding to wipe UserDefaults or preload cities, and prefer accessibility identifiers over visible text. Replace sleeps with waitForExistence-style waits to avoid flakiness, split tests into suites (PR/ nightly/ developer), use a dev-only UI test bundle as a quick Command-U script, and assert UI state (labels, table cells) after deterministic actions.
AI-written summary · about
chapters (14)
- 0:00Intro
- 0:49Overview
- 1:52Testing Strategy
- 3:38UI Tests vs Unit Tests
- 6:47Opinions on UI Tests
- 7:37Log
- 8:02Testing
- 13:04Flakiness
- 15:44Adding new cities
- 19:58Making the test faster
- 21:22Multiple test suites
- 22:38UI tests
- 25:43Tips
- 27:30Recap








