Debugging problems

Repair the test · Level 3

Checkout passes without the card error

A checkout test uses a four-digit card number. It still passes when the card error disappears. Run the starter. Read the messages beside the form fields.

What you will practise

A form can reject an entry for the wrong reason. When several fields are invalid, one working rule can hide a broken one.

Done when

  • Submit a card number with 1 to 15 digits. Use valid details for the other fields.
  • Check that the card message explains the 16-digit requirement.

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.