github.js 413 B

1234567891011121314
  1. module.exports = {
  2. tags: ['git'],
  3. 'Demo test GitHub' : function (client) {
  4. client
  5. .url('https://github.com/nightwatchjs/nightwatch')
  6. .waitForElementVisible('body', 1000)
  7. .assert.visible('.container h1 strong a')
  8. .assert.containsText('.container h1 strong a', 'nightwatch', 'Checking project title is set to nightwatch');
  9. },
  10. after : function(client) {
  11. client.end();
  12. }
  13. };