Tell us what’s happening:
My Chai tests are passing per the console, but the FCC tests are continuing to fail. I’m trying to figure out what’s going on. What should I try changing?
Your code so far
This is my repl.it.
test('submit "surname" : "Vespucci" - write your e2e test...', function(done) {
browser
.fill('surname', 'Vespucci')
.pressButton('submit', function() {
// fill the form, and submit.
browser.assert.success;
// assert that status is OK 200
browser.assert.text('span#name', 'Amerigo');
browser.assert.text('span#surname', 'Vespucci');
// assert that the element(s) 'span#dates' exist and their count is 1
browser.assert.element('span#dates', 1);
// assert that the text inside the element 'span#name' is 'Amerigo'
// assert that the text inside the element 'span#surname' is 'Vespucci'
// assert that the element(s) 'span#dates' exist and their count is 1
done();
});
});
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 Edg/87.0.664.41
.
Challenge: Run Functional Tests using a Headless Browser II
Link to the challenge: