AdminChangePassword
deleteAllVisibleCookies
comment Change password for admin account
open /vivo/
assertTitle VIVO
clickAndWait link=Log in
verifyTextPresent Log in
assertTitle Log in to VIVO
comment Login with current password
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO
verifyTextPresent testAdmin
verifyElementPresent link=Log out
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
verifyTextPresent Site Administration
verifyTextPresent User accounts
clickAndWait link=User accounts
assertTitle User Accounts
clickAndWait link=testAdmin
assertTitle User Account Control Panel
clickAndWait //input[@value='Reset Password']
assertTitle User Account Editing Form
comment Enter passwords that do not match
type Md5password Password2
type passwordConfirmation incorrect2
click primaryAction
assertAlert The passwords do not match.
comment Enter password that is not long enough
type Md5password junky
type passwordConfirmation junky
click primaryAction
assertAlert Please enter a password between 6 and 12 characters long.
comment Enter passwords that do match and are 6 characters long
type Md5password goody2
type passwordConfirmation goody2
clickAndWait primaryAction
assertTitle User Account Control Panel
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO
verifyTextPresent Log in
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Login with new password
type loginName testAdmin
type loginPassword goody2
assertTitle Log in to VIVO
clickAndWait loginForm
assertTitle VIVO
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
verifyTextPresent Site Administration
verifyTextPresent User accounts
clickAndWait link=User accounts
assertTitle User Accounts
verifyTextPresent testAdmin
clickAndWait link=testAdmin
assertTitle User Account Control Panel
clickAndWait //input[@value='Reset Password']
assertTitle User Account Editing Form
comment Change password back
type Md5password Password
type passwordConfirmation Password
clickAndWait primaryAction
assertTitle User Account Control Panel
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO
verifyTextPresent Log in