nightwatch
Version:
Easy to use Node.js based End-to-End testing solution for browser based apps and websites, using the W3C WebDriver API.
27 lines (21 loc) • 580 B
JavaScript
describe('Github', function() {
before(function(client, done) {
done();
});
it('Demo test GitHub', function (client) {
client
.url('http://github.com/nightwatchjs/nightwatch')
.waitForElementVisible('body', 1000)
.waitForElementVisible('.container h1 strong a')
.assert.containsText('.container h1 strong a', 'nightwatch', 'Checking project title is set to nightwatch');
});
after(function(client, done) {
if (client.sessionId) {
client.end(function() {
done();
});
} else {
done();
}
});
});