refactor app directory structure and add tests
This commit is contained in:
14
tests/node_modules/nightwatch/examples/tests2/github/github2.js
generated
vendored
Normal file
14
tests/node_modules/nightwatch/examples/tests2/github/github2.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
tags: ['git'],
|
||||
'Demo test GitHub' : function (client) {
|
||||
client
|
||||
.url('https://github.com/nightwatchjs/nightwatch')
|
||||
.waitForElementVisible('body', 1000)
|
||||
.assert.visible('.container h1 strong a')
|
||||
.assert.containsText('.container h1 strong a', 'nightwatch', 'Checking project title is set to nightwatch');
|
||||
},
|
||||
|
||||
after : function(client) {
|
||||
client.end();
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user