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.