MIARD
December 8, 2020, 11:25pm
1
Hey, I don’t know why this is not working please help me to get out of this.
This is what I have done so far:
const Browser = require(“zombie”);
Browser.site = ‘https://boilerplate-mochachai.miard.repl.co ’;
suite(“e2e Testing with Zombie.js”, function () {
const browser = new Browser();
suiteSetup(function(done) {
return browser.visit(’/’, done);
});
suite(’“Famous Italian Explorers” form’, function () {
// #5
test(‘submit “surname” : “Colombo” - write your e2e test…’, function (done) {
browser.fill(“surname”, “Colombo”).pressButton(“submit”, function () {
browser.assert.success();
browser.assert.text('span#name', 'Cristoforo');
browser.assert.text('span#surname', 'Colombo');
browser.assert.element('span#dates', 1);
done();
});
});
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
.
Challenge: Run Functional Tests using a Headless Browser
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
1 Like
Sky020
December 8, 2020, 11:53pm
2
Welcome, MIARD.
We are aware of an issue with this section of the curriculum:
fix(learn): Headless Browser Tests have incorrect values by nhcarrigan · Pull Request #40330 · freeCodeCamp/freeCodeCamp (github.com)
For now, all you can do is skip ahead, and return once the mentioned fix is merged into production.
Hope this helps
2 Likes
Pheew!..
Headless Chicken Mode: Deactivated
I was running around the internet looking for an answer to this too, mine runs on the repl.it node console so I’ll just save it and hope the bug is fixed, hope it won’t affect my projects I want to get this certification it has been loads of fun learning BackEnd_JS.
1 Like
codely
December 16, 2020, 1:23pm
5
Hey @Kenneth-bit !
Welcome to the Forum!
It is great!
2 Likes
Has is been fixed @Sky020 ? I’m there right now with the same problem. I have passed everything but the test hasn’t passed yet
Sky020
February 8, 2021, 9:58pm
8
Hey there,
Yes, the issue mentioned in this thread has been resolved.
If you are stuck, I recommend you open a new topic, ensuring to provide a link to your project code, and any extra information which might be useful.
1 Like