Debugging problems

Repair the test · Level 2

A cancelled draft appears in the next contact form

Someone starts adding a contact and cancels. The next form can open with the name from the cancelled draft. The test still passes.

What you will practise

To test that a field clears, you have to type something into it first. An empty field passes a reset test even when the reset is broken.

Done when

  • Enter a name in a new contact form. Check the name before cancelling.
  • Cancel and open a new form. Check that its name field starts empty.

Read the brief here. Use a computer with a keyboard to write and run tests.

$19 per month

This problem, 16 more like it, 175 lessons and 10 AI interviews a month.