From cc8b416600aaf13423eb37e826317c2f97f34ef3 Mon Sep 17 00:00:00 2001 From: ejc12 Date: Fri, 9 Jul 2010 18:35:31 +0000 Subject: [PATCH] Holly added some additional login test steps. --- .../AdminSecurity/NewAdminFirstLogin.html | 144 +++++++++++++++--- 1 file changed, 127 insertions(+), 17 deletions(-) diff --git a/utilities/acceptance-tests/suites/AdminSecurity/NewAdminFirstLogin.html b/utilities/acceptance-tests/suites/AdminSecurity/NewAdminFirstLogin.html index 862ea1a1..52ad8e8d 100644 --- a/utilities/acceptance-tests/suites/AdminSecurity/NewAdminFirstLogin.html +++ b/utilities/acceptance-tests/suites/AdminSecurity/NewAdminFirstLogin.html @@ -71,7 +71,67 @@ comment - Login with new account name and password + Try logging in without a password + + + + type + loginName + Sis Admin + + + type + loginPassword + + + + click + loginForm + + + + assertAlert + Please enter a password to log in + + + + comment + Try logging in with the wrong password + + + + type + loginName + Sis Admin + + + type + loginPassword + wrong + + + clickAndWait + loginForm + + + + assertTitle + VIVO Site Administration + + + + verifyTextPresent + Log in + + + + verifyTextPresent + The email or password you entered is incorrect. + + + + comment + Login with the correct password @@ -96,7 +156,7 @@ comment - Then prompted to create the new password + Now need to set a new password @@ -104,11 +164,71 @@ Create Your New Password + + verifyTextPresent + Password + + verifyTextPresent Please enter a password with more than 5 characters + + verifyTextPresent + Confirm Password + + + + comment + Try entering nothing in both fields + + + + type + newPassword + + + + type + confirmPassword + + + + click + passwordChangeForm + + + + assertAlert + Please enter a password between 5 and 99 characters long + + + + comment + Enter in an invalid password + + + + type + newPassword + junk + + + type + confirmPassword + junk + + + click + passwordChangeForm + + + + assertAlert + Please enter a password between 5 and 99 characters long + + comment Try using the original password as the new password @@ -134,11 +254,6 @@ VIVO Site Administration - - comment - Get error because you cannot reuse the original password - - verifyTextPresent Please choose a different password from the temporary one provided initially. @@ -151,7 +266,7 @@ comment - Type in the new password correctly in the first box and wrong in the second one + Try entering in different passwords in each field @@ -169,11 +284,6 @@ passwordChangeForm - - comment - Are told that the passwords do not match - - assertAlert Passwords do not match @@ -181,7 +291,7 @@ comment - Type in both passwords correctly + Enter valid passwords @@ -206,12 +316,12 @@ comment - Verify new account is logged in and has access to all admin options + Verify new account is logged in and has access to correct options verifyTextPresent - Logged in as Sis Admin + Logged in as Sis Admin (Log out) @@ -236,7 +346,7 @@ comment - Log out + log out