diff --git a/utilities/acceptance-tests/suites/user-management/BookmarkWithoutLoggingIn.html b/utilities/acceptance-tests/suites/user-management/BookmarkWithoutLoggingIn.html new file mode 100644 index 00000000..575384ed --- /dev/null +++ b/utilities/acceptance-tests/suites/user-management/BookmarkWithoutLoggingIn.html @@ -0,0 +1,80 @@ + + + +
+ + +Bookmark Without Logging In | ||
open | +./showDataPropertyHierarchy?home=1 | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +username | +defaultAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +Data Property Hierarchy | ++ |
verifyTextPresent | +Data Property Hierarchy | ++ |
click | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
Confirm Edited Info | ||
open | +. | ++ |
assertTitle | +VIVO | ++ |
comment | +Try to log in with original username | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +username | +User Mgmt | +
type | +password | +resetPasswd | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +(unknown username) | ++ |
verifyTextPresent | +Unknown username | ++ |
comment | +Now log in with new username (and new password) | ++ |
type | +username | +User Management | +
type | +password | +resetPasswd | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +Logged in as | ++ |
verifyTextPresent | +User Management | ++ |
comment | +Log out | ++ |
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO | ++ |
Create New User | ||
open | +. | ++ |
assertTitle | +VIVO | ++ |
comment | +Login as defaultAdmin | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +username | +defaultAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Create a new user | ++ |
clickAndWait | +link=User accounts | ++ |
assertTitle | +User Accounts | ++ |
clickAndWait | +//input[@value='Add new user account'] | ++ |
assertTitle | +User Account Editing Form | ++ |
type | +Username | +User Mgmt | +
type | +FirstName | +User | +
type | +LastName | +Mgmt | +
type | +Md5password | +UserMgmt | +
comment | +Enter a mis-matched confirmation password | ++ |
type | +passwordConfirmation | +somethingElse | +
click | +primaryAction | ++ |
assertAlert | +The passwords do not match. | ++ |
comment | +Now enter a correct password | ++ |
type | +passwordConfirmation | +UserMgmt | +
clickAndWait | +primaryAction | ++ |
assertTitle | +User Account Control Panel | ++ |
comment | +Confirm values for new user | ++ |
verifyText | +//tr[1]/td[2] | +User Mgmt | +
verifyText | +//tr[2]/td[2] | +User | +
verifyText | +//tr[3]/td[2] | +Mgmt | +
verifyText | +//tr[4]/td[2] | +0 | +
verifyTextPresent | +unprivileged | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
Delete New User | ||
open | +. | ++ |
assertTitle | +VIVO | ++ |
comment | +Log in as default admin | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +username | +defaultAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Go to User Accounts | ++ |
clickAndWait | +link=User accounts | ++ |
assertTitle | +User Accounts | ++ |
verifyElementPresent | +link=User Management | ++ |
comment | +View the new user account, and edit it. | ++ |
clickAndWait | +link=User Management | ++ |
assertTitle | +User Account Control Panel | ++ |
clickAndWait | +//input[@value='Edit User Account'] | ++ |
assertTitle | +User Account Editing Form | ++ |
comment | +Delete the account | ++ |
click | +_delete | ++ |
assertConfirmation | +Are you SURE you want to delete this user? If in doubt, CANCEL. | ++ |
waitForPageToLoad | +5000 | ++ |
assertTitle | +User Accounts | ++ |
verifyElementNotPresent | +link=User Management | ++ |
comment | +Log out | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
EditUserInfo | ||
open | +. | ++ |
assertTitle | +VIVO | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
type | +username | +defaultAdmin | +
type | +password | +Password | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
clickAndWait | +link=User accounts | ++ |
assertTitle | +User Accounts | ++ |
clickAndWait | +link=User Mgmt | ++ |
assertTitle | +User Account Control Panel | ++ |
clickAndWait | +//input[@value='Edit User Account'] | ++ |
assertTitle | +User Account Editing Form | ++ |
type | +Username | +User Management | +
type | +LastName | +Management | +
clickAndWait | +primaryAction | ++ |
assertTitle | +User Account Control Panel | ++ |
clickAndWait | +//input[@value='Edit User Account'] | ++ |
assertTitle | +User Account Editing Form | ++ |
clickAndWait | +_cancel | ++ |
assertTitle | +User Account Control Panel | ++ |
clickAndWait | +//input[@value='Reset Password'] | ++ |
assertTitle | +User Account Editing Form | ++ |
type | +Md5password | +otherPassword | +
type | +passwordConfirmation | +somethingElse | +
click | +primaryAction | ++ |
assertAlert | +The passwords do not match. | ++ |
type | +passwordConfirmation | +otherPassword | +
click | +primaryAction | ++ |
assertAlert | +Please enter a password between 6 and 12 characters long. | ++ |
type | +Md5password | +resetPasswd | +
type | +passwordConfirmation | +resetPasswd | +
clickAndWait | +primaryAction | ++ |
assertTitle | +User Account Control Panel | ++ |
clickAndWait | +link=Log out | ++ |
assertTitle | +VIVO | ++ |
First Time Login | ||
open | +. | ++ |
assertTitle | +VIVO | ++ |
comment | +Login for the first time | ++ |
clickAndWait | +link=Log in | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Try the wrong password | ++ |
type | +username | +User Mgmt | +
type | +password | +incorrect | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +(1st login; initial password entered incorrectly) | ++ |
verifyTextPresent | +Please try entering provided password again | ++ |
comment | +Now the correct password | ++ |
type | +password | +UserMgmt | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +(1st login; changing to new private password) | ++ |
verifyTextPresent | +Please now choose a private password | ++ |
comment | +Try changing to an invalid password | ++ |
type | +password | +junk | +
click | +loginSubmitMode | ++ |
assertAlert | +Please enter a password between 6 and 12 characters long | ++ |
comment | +Now try a valid one | ++ |
type | +password | +newPassword | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +(changing to new password) | ++ |
verifyTextPresent | +Please re-enter new private password | ++ |
comment | +Re-enter it incorrectly | ++ |
type | +password | +garbage | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
verifyTextPresent | +(password incorrect) | ++ |
verifyTextPresent | +Incorrect password: try again | ++ |
comment | +Now re-enter it correctly | ++ |
type | +password | +newPassword | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Are we logged in? | ++ |
verifyTextPresent | +Logged in as | ++ |
verifyTextPresent | +User Mgmt | ++ |
comment | +Log out | ++ |
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO | ++ |
Test Suite |
Create New User |
First Time Login |
Try New Password |
Edit User Info |
Confirm Edited Info |
Delete New User |
Bookmark Without Logging In |
Try New Password | ||
open | +. | ++ |
assertTitle | +VIVO | ++ |
comment | +Log in with new password | ++ |
clickAndWait | +link=Log in | ++ |
type | +username | +User Mgmt | +
type | +password | +newPassword | +
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO Site Administration | ++ |
comment | +Confirm that it worked | ++ |
verifyTextPresent | +Logged in as | ++ |
verifyTextPresent | +User Mgmt | ++ |
comment | +Log out | ++ |
clickAndWait | +loginSubmitMode | ++ |
assertTitle | +VIVO | ++ |