nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
15 lines (13 loc) • 416 B
JavaScript
module.exports = {
tags: ['git'],
'Demo test GitHub': function (client) {
client
.url('https://github.com/nightwatchjs/nightwatch')
.waitForElementVisible('body')
.assert.visible('#repository-container-header h1')
.assert.containsText('#repository-container-header h1', 'nightwatch', 'Checking if project title is set to nightwatch');
},
after(client) {
client.end();
}
};