refactor app directory structure and add tests
This commit is contained in:
24
tests/node_modules/nightwatch/examples/mocha/github.js
generated
vendored
Normal file
24
tests/node_modules/nightwatch/examples/mocha/github.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
describe('Github', function() {
|
||||
|
||||
it('Demo test GitHub', function (client) {
|
||||
client
|
||||
.url('https://github.com/nightwatchjs/nightwatch')
|
||||
.waitForElementVisible('body', 1000)
|
||||
.assert.title('nightwatchjs/nightwatch · GitHub')
|
||||
.assert.visible('.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();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user