I am using the 4.0.7 + io.js.
I am just trying to modify the simple example, but the script times out too soon (after 2000 ms). I added a browser.waitfor (see code below), but this doesn't seem to change anything.
const Browser = require('zombie');
// Which will be routed to our test server localhost:3000
Browser.localhost('myserver.vm');
describe('User visits signup page', function() {
const browser = new Browser();
browser.waitFor = 99999; // <<<<<=========================I added this line, but it doesn't change the result. The script needs to run about 10 to 20 seconds
before(function(done) {
});
describe('submits form', function() {
before(function(done) {
browser
.fill('#myfield', 'fieldname')
.pressButton('#edit-save', done);
});
it('should be successful', function() {
browser.assert.success();
});
it('should see welcome page', function() {
browser.assert.text('title', 'Welcome To Brains Depot');
});
});
});