AdminChangePassword
deleteAllVisibleCookies
setTimeout 100000
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@cornell.edu
type loginPassword Password
clickAndWait loginForm
verifyTextPresent Test
verifyElementPresent link=Log out
clickAndWait link=My account
assertTitle VIVO
verifyTextPresent My account
verifyTextPresent New password
verifyTextPresent Confirm new password
comment Hit save without entering anything
clickAndWait submitMyAccount
assertTitle VIVO
verifyTextPresent Your changes have been saved.
comment Enter new password but not confirmation
type new-password onlynew
type confirm-password
clickAndWait submitMyAccount
assertTitle VIVO
verifyTextPresent Passwords do not match.
comment Enter confirmation but not new password
type new-password
type confirm-password onlyconfirm
clickAndWait submitMyAccount
assertTitle VIVO
verifyTextPresent Passwords do not match.
comment Enter passwords that do not match
type new-password Password2
type confirm-password incorrect2
clickAndWait submitMyAccount
assertTitle VIVO
verifyTextPresent Passwords do not match.
comment Enter password that is not long enough
type new-password junky
type confirm-password junky
clickAndWait submitMyAccount
assertTitle VIVO
verifyTextPresent Password must be between 6 and 12 characters.
comment Enter passwords that do match and are 6 characters long
type new-password goody2
type confirm-password goody2
clickAndWait submitMyAccount
assertTitle VIVO
verifyTextPresent Your changes have been saved.
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@cornell.edu
type loginPassword goody2
clickAndWait loginForm
assertTitle VIVO
clickAndWait link=My account
assertTitle VIVO
comment Change password back
type new-password Password
type confirm-password Password
clickAndWait submitMyAccount
assertTitle VIVO
verifyTextPresent Your changes have been saved.
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO