Hi, everyone.
I’m having a couple of issues with the Survey Form Project and getting it to pass the tests.
My first issue is the id=“name” test. This is my HTML:
<form id="survey-form">
<form id="name">
<label for="name" id="name">Name</label>
<input type="text" id="name" class="form-control" name="name" placeholder="Enter your Name" required/>
</form>
But this runs the error: “input field with id=“name” should be a text field : expected undefined to equal ‘text’”
Yet, if I remove the closing bracket from the second line the test passes, but then I’m left with an open tag that doesn’t feel right…
This is the HTML that passes:
<form id="survey-form">
<form id="name"
<label for="name" id="name">Name</label>
<input type="text" id="name" class="form-control" name="name" placeholder="Enter your Name" required/>
</form>
I find this a little confusing.
I’m also having similar trouble with the Email section.
I’m getting the following Error: "Email input field should be required : expected undefined to be truthy
AssertionError: Email input field should be required : expected undefined to be truth
"
This is my HTML:
<form id="email">
<label for="email" id="email">Email</label>
<input type="email" id="email" name="email" class="form-control" placeholder="Enter your email" required/>
</form>
Sorry, this is a lot, just wanted to get it all out in one post as it’s the same project and I’m stumped!
Thanks in Advance!