Many teams struggle with the idea of applying TDD to the UI. A common problem is ending up with tests that are tightly coupled to the code itself, when the real goal should be the opposite: designing components around use cases and expressing those use cases through tests.
The session linked from the original article focuses on a simple, practical way to think about those use cases while staying as close as possible to the GREEN – RED – REFACTOR loop.
Conclusion
The more we practice these techniques, the faster we become at using them and the more productive they can make us in everyday work.
It is not always necessary to write tests for components with no real logic, but approaching the problem through use cases often reveals scenarios we would not have considered at first.