quality-assurance-and-testing-with-chai-run-functional-tests-using-a-headless-browser-#5

Tell us what’s happening:

In quality-assurance-and-testing-with-chai-run-functional-tests-using-a-headless-browser-i-cant-complete #5 is its giving 2 issues

  1. either return 502 error
  2. other time says pressButton not function

Error – 1) 1) Functional Tests with Zombie.js
“before all” hook in “Functional Tests with Zombie.js”:
Error: Server returned status code 502 from https://boilerplate-mochachai.preetidk.repl.co/

Error – 2)

  1. Functional Tests with Zombie.js
    “Famous Italian Explorers” form
    Submit the surname “Colombo” in the HTML form:
    TypeError: browser.fill(…).pressButton is not a function

I am not able to figure out whats the issue.

Your code so far
suite(’“Famous Italian Explorers” form’, function () {
// #5
test(‘Submit the surname “Colombo” in the HTML form’, 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.elements(‘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/97.0.4692.71 Safari/537.36

Challenge: Use Assert.isOK and Assert.isNotOK

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.