mimik
Version:
Write end-to-end automation tests in natural language
25 lines (20 loc) • 635 B
JavaScript
// Given I am a registered user
Given(/I am a registered user/, function(done) {
//expect('test this').to.equal('test that');
done();
});
// When I go to github.com
When(/I go to github.com/, function(done) {
//this.driver.get('https://github.com', done);
expect('test this').to.equal('test that');
setTimeout(done, 2500);
});
// And I enter my credentials and submit the login form
And(/I enter my credentials and submit the login form/, function(done) {
//this.driver.type('', done);
done();
});
// Then I should see a welcome page
Then(/I should see a welcome page/, function(done) {
done();
});