Composing With Confidence
summary
Shows how to test Jetpack Compose UIs end-to-end and component-level using concrete code: use createComposeRule or createAndroidComposeRule to render composables, find nodes with onNodeWithText/Tag, assert enabled/displayed/text and call performClick or performTextInput. Demonstrates a real button test (click flips a Boolean when enabled), inspects a rendered match card by printing the node tree to verify inline "[winner]" becomes a trophy icon, and compares pixel snapshots with Paparazzi. Recommends reusable login screen robot helpers to reduce duplicated selectors and keep flow tests readable.
AI-written summary · about
chapters (10)
- 0:00Introduction and setup
- 1:49Getting started with Compose testing
- 3:56Test recipe and finding components
- 7:04Matchers, assertions and actions
- 8:31Testing a simple button
- 10:37Testing a match card component
- 13:26Snapshot testing with Paparazzi
- 16:34Testing a login form
- 19:02Scalable tests with test robots
- 21:53Summary and resources
related talks
29mComposing With Confidence
36mTesting Jetpack Compose UI
07mWrite your first Compose UI test
34mOverview of UI testing in Compose
47mDancing Around the Semantics Tree: UI Testing Compose Screens
05m5 ways Compose improves UI testing
38mCompose UI Testing beyond layouts
46mTesting Compose Anew: Simplicity, Reliability, Flexibility
