Semantics & Test Tags
Make UI testable and accessible.
The Semantics Tree
Compose builds a semantics tree next to the visual one. It describes what each element means, and it is exactly what both tests and screen readers read.
Why Semantics Matter
If a node carries no meaning in the tree, finders cannot reach it and TalkBack cannot announce it. Good semantics make your app both testable and accessible. ♿
All lessons in this course
- createComposeRule & Finders
- Assertions & Performing Actions
- Semantics & Test Tags
- Testing ViewModels & Flows