Hello,
I have just finished the 3rd HTML-CSS challenge, so I ran the script that shows me if I fulfilled all the tests. The problem is here:
Even though everything works as it should and everything has the correct id, the script (which checks if all User stories are fulfilled) spits irrelevant errors.
My codepen: https://codepen.io/samokosik/pen/zYKbBJy?editors=1100
Possible causes:
there is a bug in the script and my code has a trigger which triggers the bug
an aspect, which should be in the added to my code is not mentioned in the user stories
If anyone has the same problem or knows what this causes, let me know.
Thanks
Within the form, there is a submit with corresponding id=âsubmitâ.
#submit should be an element : expected âBUTTONâ to equal âINPUTâ AssertionError: #submit should be an element : expected âBUTTONâ to equal âINPUTâ
It is telling you what the problem is:
<button id="submit" type="submit">Submit</button>
You have a button, it wants and input. Look up how how these are used. It will take a little adjustment, but thatâs the idea.
The #email input should have a name attribute : expected false to equal true AssertionError: The #email input should have a name attribute : expected false to equal true
That tells you exactly what the problem is.
When I fix these three things, all the tests pass for me.
Part of being a developer is paying attention to tiny details. And the finished product isnât done if you think itâs done, itâs done when the product owners think itâs done and meets their specifications.