In the last chapter, we studied the basic elements of writing Cucumber features and how to use Puppeteer to manipulate our UI. But we haven't yet explored how they can fit into our development process. In this chapter, we'll implement a new feature starting with our Cucumber acceptance tests.
Imagine that our product owner has seen the great work that we've done building Spec Logo. They have suggested that the share screen functionality is good, but it can do with an addition: it should give the presenter the option of resetting their state before sharing begins as shown below:
The product owner has provided us with some Cucumber acceptance tests that are currently red and have passed them to you for implementation—both the step definitions and the production code.
This chapter covers the...