Exercise: Mocking

This exercise will allow you to put into practice what you have learned so far in this course.

Starter project

The starter project contains a form that allows a user to enter a person’s name and score. The project includes two tests that verify the following:

  • When the form is successfully submitted, a success message is rendered.
  • When the form is unsuccessfully submitted, an error message is rendered.

The tests haven’t been implemented yet. In this exercise, you’ll fully implement these tests.

The skeleton code is given below:

Get hands-on with 1200+ tech skills courses.