0.0.16 • Published 9 years ago
fe-nightwatch-common v0.0.16
Fusion Frontend: Nightwatch Common
A collection of assertions, commands and common step tests used with Nightwatch.js
Api
querystringContainsKey
Assert that the querystring contains a certain key
module.exports = {
"querystring contains foo " : function (client) {
client.assert.querystringContainsKey('foo');
}
}Parameters
keystring description
querystringKeyIs
Assert a querystring key value
module.exports = {
"querystring foo is bar " : function (client) {
client.assert.querystringKeyIs('foo', 'bar')
}
}Parameters
keystring descriptionvaluestring description
waitForUrl
executes command
Parameters
url[type] descriptionmilliseconds[type] descriptiontimeout[type] descriptionmessages[type] descriptioncallbackFunction description
Returns [type] description
waitForUrlToContain
Waiting for url expected
Parameters
urlstring url expected to containmillisecondsnumber total time until command times outtimeoutnumber time to wait before command starts polling the URLmessagesObject message outputcallbackFunction callback
Returns [type] client
templateAnswer
declaritive answers processing
Parameters
answer[type] description
Returns [type] description