ohif-viewer/LesionTracker/tests/nightwatch/commands/api/entry/signIn.js
2016-01-26 17:57:50 +01:00

15 lines
425 B
JavaScript

exports.command = function(username, password) {
this
.waitForElementVisible('#entrySignIn', 1000)
.verify.elementPresent("#signInPageEmailInput")
.verify.elementPresent("#signInPagePasswordInput")
.setValue("#signInPageEmailInput", username)
.setValue("#signInPagePasswordInput", password)
.click("#signInToAppButton").pause(1000)
return this; // allows the command to be chained.
};