Let's review a new example in this lesson. We'll use TDD to build a generic "question" component. Along the way, we'll extract a handful of helper functions, such as see()
, click()
, and type()
. You'll find that this drastically improves the readability of our tests.
View the source code for this episode on GitHub.