@gwiztee, when a test fails click the red button to see which test(s) are failing and text to help you correct the issue.
- Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.
For instance, the first failing test message says
Inside the form element, I can select a field from one or more groups of radio buttons. Each group should be grouped using the name attribute. Each radio button must have a value attribute. There should be at least 2 radio buttons inside the #survey-form : expected 0 to be at least 2 AssertionError: There should be at least 2 radio buttons inside the #survey-form : expected 0 to be at least 2
On a side note, you have quite a few syntax errors. Run your HTML code through the W3C validator to identify them. Cleaning them up will help with some of the tests that are failing.
- Since copy/paste from codepen you can ignore the first warning and first two errors.
Right off the bat, I can see that you have some structure issues.
For example, you start your form on line 6. But you have an extraneous
</div> on line 37. I think that’s screwing up the tests because it can’t parse it. You have 14
<div> and 15
</div>. Before even trying to fix the tests, I would clean that up.
I see that Roma mentioned a validator - that’s kind of what I’m talking about, cleaning up the code.
Okay thank you will do that
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.