# CodePen Test Suite Question

**URL:** <https://forum.freecodecamp.org/t/codepen-test-suite-question/198256>\
**Category:** freeCodeCamp Contributors\
**Tags:** contributing\
**Created:** [June 9, 2018, 1:03am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256 "2018-06-09T01:03:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![KoniKodes](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/konikodes/32/158615_2.png) [@KoniKodes](https://forum.freecodecamp.org/u/KoniKodes)\
**Post date:** [June 9, 2018, 1:03am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/1 "2018-06-09T01:03:59Z")

</div>

Hi All,  
I’m enjoying the new challenges for Responsive Web Design.

I ran it on CodePen with the Test Suite and it gave me Green X - I passed yes?

But it said 15/17. There are only 16 User Stories - what did I miss?

Is it possible to find what is missing on our projects? Even though I passed, I thought did all of the user stories.

Are there other criteria that I was not aware of?

Thank you in advance…

My Survey Form is at [https://codepen.io/KoniKodes/full/XYdKQO/](https://codepen.io/KoniKodes/full/XYdKQO/)

---

<div class="post-metadata">

**Author:** ![hbar1st](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hbar1st/32/372649_2.png) [@hbar1st](https://forum.freecodecamp.org/u/hbar1st)\
**Post date:** [June 9, 2018, 1:15am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/2 "2018-06-09T01:15:48Z")

</div>

click on the red “Tests 15/17” button and it will show you a full report.  
You failed the “If I enter an email that is not formatted correctly, I will see an HTML5 validation error.” and you failed the “Inside the form element, I am presented with a button with id=“submit” to submit all my inputs”.

hope this helps.

---

<div class="post-metadata">

**Author:** ![KoniKodes](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/konikodes/32/158615_2.png) [@KoniKodes](https://forum.freecodecamp.org/u/KoniKodes)\
**Post date:** [June 9, 2018, 1:39am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/3 "2018-06-09T01:39:56Z")

</div>

Thank you. I did look there.

I have the html5 markup a in html lines 21 - 22 as:  
“label id=“email-label” class=“col-form-label” for=“email-label”\>Email Address _\*_ "  
“input type=“text” id=“email” placeholder=” There will be no spam” required /"

I have the button with id=“submit” in line 101 of html:  
“button type=“button” id=“submit” class=“btn btn-info” data-toggle=“modal” data-target=”#koniModal"\> Submit "

Can you please tell me where I went wrong?

---

<div class="post-metadata">

**Author:** ![dexter\_dhiraz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dexter_dhiraz/32/89210_2.png) [@dexter\_dhiraz](https://forum.freecodecamp.org/u/dexter_dhiraz)\
**Post date:** [June 9, 2018, 1:51am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/4 "2018-06-09T01:51:18Z")

</div>

Hi you should try with type = " submit" rather than a type = “button” and if it still dont solve your problem try with input markup rather than a button

---

<div class="post-metadata">

**Author:** ![hbar1st](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hbar1st/32/372649_2.png) [@hbar1st](https://forum.freecodecamp.org/u/hbar1st)\
**Post date:** [June 9, 2018, 2:01am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/5 "2018-06-09T02:01:31Z")

</div>

the first error details say:  
AssertionError: Email field should be HTML5 validated : expected ‘text’ to equal ‘email’

so it is saying that instead of type=“text” the unit test was expecting “email”

looking at the detail for the second error we see:  
AssertionError: Your button’s type attribute should have a value of “submit” : expected ‘button’ to equal ‘submit’

So @dexter_dhiraz was correct.  
Consider this a good exercise for you to learn how to read error messages and attempt to handle them. Hope this helps.

---

<div class="post-metadata">

**Author:** ![KoniKodes](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/konikodes/32/158615_2.png) [@KoniKodes](https://forum.freecodecamp.org/u/KoniKodes)\
**Post date:** [June 9, 2018, 2:06am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/6 "2018-06-09T02:06:28Z")

</div>

Thank you both so much!

Yes, I now pass at 100%. But what was the 17th test when there were only 16 User Stories?

And yes, it is good practice on fixing these errors.

---

<div class="post-metadata">

**Author:** ![hbar1st](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hbar1st/32/372649_2.png) [@hbar1st](https://forum.freecodecamp.org/u/hbar1st)\
**Post date:** [June 9, 2018, 2:12am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/7 "2018-06-09T02:12:50Z")

</div>

It counts as 17 because there are 16 Content tests plus 1 Technology Stack test. (take a closer look at the report…)  
Way to go on passing them all!

---

<div class="post-metadata">

**Author:** ![KoniKodes](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/konikodes/32/158615_2.png) [@KoniKodes](https://forum.freecodecamp.org/u/KoniKodes)\
**Post date:** [June 9, 2018, 5:30am UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/8 "2018-06-09T05:30:35Z")

</div>

I will take a closer look.

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 7:59pm UTC](https://forum.freecodecamp.org/t/codepen-test-suite-question/198256/9 "2021-01-17T19:59:33Z")

</div>

Closed on January 17, 2021, 7:59pm UTC


