mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 07:15:09 +00:00
22 lines
561 B
JavaScript
22 lines
561 B
JavaScript
/**
|
|
* Sample automated test scenario for Nightwatch.js
|
|
*
|
|
* > it navigates to google.com and searches for nightwatch,
|
|
* verifying if the term 'The Night Watch' exists in the search results
|
|
*/
|
|
|
|
module.exports = {
|
|
'demo test google' : function (client) {
|
|
client
|
|
.url('http://google.com')
|
|
.waitForElementPresent('body', 1000);
|
|
},
|
|
|
|
'part two' : function(client) {
|
|
client
|
|
.setValue('input[type=text]', ['nightwatch', client.Keys.ENTER])
|
|
.pause(1000)
|
|
.assert.containsText('#main', 'Night Watch')
|
|
.end();
|
|
}
|
|
};
|