In this practice you will be debugging the provided HTML Form.
Your main focus is to practice identifying and debugging the HTML form. There are some errors that are obvious while others take more attention. You will also use Cypress testing to check your work.
Once you have downloaded the starter, cd
into the project directory and run
npm install
to install the cypress tests. To run tests, use the command npm test
. If everything is set up correctly, the first test, checking the title of
the project, should already pass based on the code provided in the starter.
Once you have set up and tried out the Cypress tests, open the index.html
file in your browser. Complete the task described in each phase below, and run
npm test
to check your solution after each phase.
- The last name field is broken and is not rendering properly. Please fix it.
- Hint: should be similar to the first name
<div>
The <select>
element has a broken dropdown with the following three values:
- admin
- user
- guest
However, upon further inspection the values are not being shown. Debug the issue.
- Instead of the bio element having two input fields change it to be able to take in a text box that allows multiple lines of text.
After you have passed all of the tests, delete your node modules folder, zip up your project, and submit it using the green submit button below.