Skip to the editor

Prove the empty form is validated

Forms & validation · level 1 of 5 · Nimbus

Validation is a behaviour like any other: if you don't assert it, nobody is testing it.

The problem

Submit the Nimbus login form with both fields empty and prove the user is told what is wrong.

Your test must fail if the app stops showing validation messages.

Done when

  • Submitting an empty form shows an error for both required fields.

Bugs we plant

  • Empty fields show no validation errors

We break each one in a copy of the app. Your test has to fail on every copy.

Loading the editor…