# Headless Browser Test Not Passing Despite Correct Code

**URL:** <https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594>\
**Category:** General\
**Created:** [December 3, 2020, 7:10pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594 "2020-12-03T19:10:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nwbray-code](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nwbray-code/32/136283_2.png) [@nwbray-code](https://forum.freecodecamp.org/u/nwbray-code)\
**Post date:** [December 3, 2020, 7:10pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/1 "2020-12-03T19:10:30Z")

</div>

In normal voice and tone I say:

I tried several things based on the browser.assert.methods examples on Zombie.js homepage and the test still did not pass, not a one.

So, then I looked at the hint and then looked at the solution. My code should have worked.

But, to be sure it wasn’t something wrong with my code, I went ahead and type the solution code in instead and it still isn’t working.

I used my url, the one in the test browser above the terminal.

[Quality Assurance and Testing with Chai - Run Functional Tests using a Headless Browser | Learn | freeCodeCamp.org](https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/run-functional-tests-using-a-headless-browser)

---

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [December 3, 2020, 7:12pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/2 "2020-12-03T19:12:35Z")

</div>

Hey there,

This was partially my fault, and a fix is on the way:  
[fix(learn): Headless Browser Tests have incorrect values by nhcarrigan · Pull Request #40330 · freeCodeCamp/freeCodeCamp (github.com)](https://github.com/freeCodeCamp/freeCodeCamp/pull/40330)

For now, all you can do is move on to the next section.

---

<div class="post-metadata">

**Author:** ![nwbray-code](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nwbray-code/32/136283_2.png) [@nwbray-code](https://forum.freecodecamp.org/u/nwbray-code)\
**Post date:** [December 3, 2020, 7:22pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/3 "2020-12-03T19:22:06Z")

</div>

How do I go to the next section?

I thought each tutorial had to be done in order.

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [December 3, 2020, 7:42pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/4 "2020-12-03T19:42:49Z")

</div>

You can always go to [freeCodecamp.org/learn](http://freeCodecamp.org/learn) and click on a section. The lessons will move you forward in order, but you can always jump directly to something.  
Happy coding!

---

<div class="post-metadata">

**Author:** ![nwbray-code](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nwbray-code/32/136283_2.png) [@nwbray-code](https://forum.freecodecamp.org/u/nwbray-code)\
**Post date:** [December 3, 2020, 7:52pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/5 "2020-12-03T19:52:17Z")

</div>

Is it okay to jump the #6 challenge, zombie related challenge, right after the one, #5, that is having the issue?

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [December 3, 2020, 7:59pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/6 "2020-12-03T19:59:54Z")

</div>

Absolutely! Nothing is tracking what order you complete challenges in. We strongly recommend that most people do things in order because they build progressively, but that’s just to make your journey a little easier. Sounds like you’ve solved this problem, so you’re ready for the next.

---

<div class="post-metadata">

**Author:** ![nwbray-code](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nwbray-code/32/136283_2.png) [@nwbray-code](https://forum.freecodecamp.org/u/nwbray-code)\
**Post date:** [December 4, 2020, 7:15pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/7 "2020-12-04T19:15:42Z")

</div>

I went to the next 2 challenges in this tutorial, but the code isn’t passing in them either.

So I went to the Advanced Node and Express tutorial.

If possible, could someone notify me when the test are fixed so I can check to make sure I passed them and that I’m not missing anything.

---

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [December 4, 2020, 7:58pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/8 "2020-12-04T19:58:49Z")

</div>

I would suggest you just keep an eye out on the above linked PR. Once that is merged, then there will be a maximum (generally) of 7 days before it is in production (visible on the public webpage)

---

<div class="post-metadata">

**Author:** ![nwbray-code](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nwbray-code/32/136283_2.png) [@nwbray-code](https://forum.freecodecamp.org/u/nwbray-code)\
**Post date:** [December 5, 2020, 7:39pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/9 "2020-12-05T19:39:17Z")

</div>

You mean this link right:

[fix(learn): Headless Browser Tests have incorrect values by nhcarrigan · Pull Request #40330 · freeCodeCamp/freeCodeCamp (github.com)](https://github.com/freeCodeCamp/freeCodeCamp/pull/40330)

PR means pull request… correct?

---

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [December 5, 2020, 8:02pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/10 "2020-12-05T20:02:59Z")

</div>

> [@nwbray-code](#):
>
> PR means pull request… correct?

Yes. Correct. Once that is merged, and committed into the `production-current` branch of the repository, the challenges should be fixed.

---

<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:** [June 1, 2021, 6:36pm UTC](https://forum.freecodecamp.org/t/headless-browser-test-not-passing-despite-correct-code/433594/11 "2021-06-01T18:36:30Z")

</div>

Closed on June 1, 2021, 6:36pm UTC


