Created
March 6, 2019 08:16
-
-
Save PierreCavalet/9b7bc1a8b4bbea7bdaf7ce05c9e1520c to your computer and use it in GitHub Desktop.
after hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
after: function(browser) { | |
console.log('I am done.') | |
}, | |
'Demo test': function (browser) { | |
browser | |
.url('https://nightwatch-demo.netlify.com/') | |
.waitForElementVisible('[data-nw=name-input]') | |
.setValue('[data-nw=name-input]', 'Pierre') | |
.pause(1000) | |
.assert.containsText('[data-nw=welcome-message]', 'Welcome Pierre !') | |
.end() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment