Cypress 13

Test component props

Hard120 pts~45 min
  • Workshop Registration
Practice app · Workshop Registration

A registration form with text fields, radios, checkboxes, selects and validation.

Test URL
/lab/cypress-test-component-props

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Test component props. Practise it against the Workshop Registration practice application (A registration form with text fields, radios, checkboxes, selects and validation.).

Your task

  1. 1Open the practice application at the test URL shown above and wait for it to finish loading.
  2. 2Inspect the page to find the elements you need — key elements include #first-name, #last-name, #email.
  3. 3Write and run a test that demonstrates: test component props.
  4. 4Finish with at least one assertion on a user-visible outcome, not an internal detail.

Acceptance criteria

  • The test runs to completion without errors.
  • The test contains at least one passing assertion on a user-visible outcome.

Cypress 13 · Cypress · Component testing