UNPKG

nightwatch

Version:

Easy to use Node.js based End-to-End testing solution for browser based apps and websites, using the W3C WebDriver API.

16 lines (14 loc) 474 B
module.exports = { tags: ['git'], 'Demo test GitHub' : function (client) { client .url('http://github.com/nightwatchjs/nightwatch') .waitForElementVisible('xbody', 1000) .waitForElementVisible('.container h1 strong a') .assert.containsText('.container h1 strong a', 'nightwatch', 'Checking project title is set to nightwatch') .expect.element('.branch-select-menu button').to.be.active; }, after(client) { client.end(); } };