Simulate Actions Using a Headless Browser

hi @luizfernandorg “done” is a callback function just add to it a parenthesis
code :

const Browser = require('zombie');
Browser.site = 'https://boilerplate-mochachai.luizfernandorg.repl.co';
const browser = new Browser();
suite('Functional Tests with Zombie.js', function() {
  this.timeout(5000);
  
  suiteSetup(function(done) {
    return browser.visit('/', done( ) );
  });
 /*
  suite('Headless browser', function() {
    test('should have a working "site" property', function() {
      assert.isNotNull(browser.site);
    });
  });
   
  suite('"Famous Italian Explorers" form', function () {
    // #5
    test('Submit the surname "Colombo" in the HTML form', function (done) {
      assert.fail();

      done();
    });
    // #6
    test('Submit the surname "Vespucci" in the HTML form', function (done) {
      assert.fail();

      done();
    });
  });*/
});
2 Likes