Description
Changes proposed in this Pull Request
Adds validation to the “Enter your website address:” input form.
Task: 1200479326344990-as-1200641986671515
Screenshots:
Testing instructions
- Checkout and run this PR
- Go to http://calypso.localhost:3000/checkout/jetpack/jetpack_scan
- Complete siteless checkout.
- On the “Thank you” page, enter and submit various non valid website addresses, verify you see the validation error message, “That is not a valid website URL.”
- Enter a valid website address, (don’t submit yet) and verify the error message disappears.
- Copy the
receiptId
value n the url ( paste it somewhere, you’ll need it later).
- Change the receiptId value in the url to some random number and press enter to reload the page. (We’re doing this so that we will trigger an error when submitting the POST request.)
- Enter a valid website url and submit the form. Verify you see the error message, “There was a problem submitting your website address, please try again.”
- In the url, fix the
receiptId
with the correct id you copied earlier. Enter a valid website address, and submit the form. Verify the url was submitted successfully and you are redirected to the “Thank you completed” page.
Related to #
Unfortunately, no screenshots were provided by the developer.