...
/The Fourth and Fifth Tests: Confirmation Message and Email
The Fourth and Fifth Tests: Confirmation Message and Email
Let’s implement the final two steps of the user registration scenario.
We'll cover the following...
The fourth test
The fourth step is still pending, so we’ll need to define it.
Suppose we want to see a flash message that welcomes the user. In other words, if the user sees the word “Welcome” on the screen, the test should pass.
Press + to interact
Then('I should see a registration confirmation message') doexpect(page).to have_content("Welcome")end
Add the step definition and run the test.
Note: You need to add the code above to the SPA.