temp
comment Login for first time with new admin account
deleteAllVisibleCookies
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle VIVO Site Administration
verifyTextPresent Log in
comment Login with new account name and password
type loginName Sis Admin
type loginPassword myPassword
clickAndWait loginForm
assertTitle VIVO Site Administration
comment Then prompted to create the new password
verifyTextPresent Create Your New Password
verifyTextPresent Please enter a password with more than 5 characters
comment Try using the original password as the new password
type newPassword myPassword
type confirmPassword myPassword
clickAndWait passwordChangeForm
assertTitle 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.
verifyTextPresent Please enter a password with more than 5 characters
comment Type in the new password correctly in the first box and wrong in the second one
type newPassword newPassword
type confirmPassword newPasword
click passwordChangeForm
comment Are told that the passwords do not match
assertAlert Passwords do not match
comment Type in both passwords correctly
type newPassword newPassword
type confirmPassword newPassword
clickAndWait passwordChangeForm
assertTitle VIVO Site Administration
comment Verify new account is logged in and has access to all admin options
verifyTextPresent Logged in as Sis Admin
verifyTextPresent Data Input
verifyTextPresent Site Configuration
verifyTextPresent Ontology Editor
verifyTextPresent Advanced Data Tools
comment Log out
clickAndWait link=Log out
assertTitle VIVO