Added nightwatch starrynight scaffold folder

This commit is contained in:
Erik Ziegler committed 2016-01-26 17:57:50 +01:00
1 parent 2ea9eae0aa
commit d2ab42e11c
18 files changed
+246

No files matched your search

@@ -0,0 +1,15 @@
exports.command = function(username, password) {
this
.waitForElementVisible('#entrySignIn', 1000)
.verify.elementPresent("#signInPageTitle")
.verify.elementPresent("#signInPageMessage")
.verify.elementPresent("#signInPageEmailInput")
.verify.elementPresent("#signInPagePasswordInput")
.verify.elementPresent("#signInToAppButton")
.verify.elementPresent("#needAnAccountButton")
.verify.containsText("#signInPageTitle", "Sign In")
.verify.containsText("#signInPageMessage", "Improve your clincal practice with checklists.")
return this; // allows the command to be chained.
};
@@ -0,0 +1,11 @@
exports.command = function(username, password) {
this
.waitForElementVisible('#entrySignUp', 1000)
.verify.elementPresent("#signUpPageEmailInput")
.verify.elementPresent("#signUpPagePasswordInput")
.verify.elementPresent("#signUpPagePasswordConfirmInput")
.verify.elementPresent("#signUpPageJoinNowButton")
return this; // allows the command to be chained.
};
@@ -0,0 +1,14 @@
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.
};
@@ -0,0 +1,8 @@
exports.command = function(email, password) {
this
.verify.elementPresent("#logoutButton")
.click("#logoutButton").pause(500)
return this; // allows the command to be chained.
};
@@ -0,0 +1,23 @@
exports.command = function(email, password) {
this
.waitForElementVisible('#entrySignUp', 1000)
.verify.elementPresent("#signUpPageEmailInput")
.verify.elementPresent("#signUpPagePasswordInput")
.verify.elementPresent("#signUpPagePasswordConfirmInput")
.clearValue("#signUpPageEmailInput")
.clearValue("#signUpPagePasswordInput")
.clearValue("#signUpPagePasswordConfirmInput")
// .setValue("#signUpPageUsernameInput", "Jane Doe")
.setValue("#signUpPageEmailInput", email)
.setValue("#signUpPagePasswordInput", password)
.setValue("#signUpPagePasswordConfirmInput", password)
.click("#signUpPageJoinNowButton").pause(200)
return this; // allows the command to be chained.
};