Tell us what’s happening:
I’m following all steps mentioned in the question , still getting the incorrect output. Pls guide me where I’m going wrong.
Repl: https://repl.it/@akshitchaturved/boilerplate-mochachai
Your code so far
const Browser = require("zombie");
Browser.site = 'https://boilerplate-mochachai.akshitchaturved.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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15
.
Challenge: Run Functional Tests using a Headless Browser
Link to the challenge: