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 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
type loginName Sis Admin
type loginPassword myPassword
clickAndWait loginForm
assertTitle VIVO Site Administration
comment Now need to set a new password
verifyTextPresent 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
type newPassword myPassword
type confirmPassword myPassword
clickAndWait passwordChangeForm
assertTitle VIVO Site Administration
verifyTextPresent Please choose a different password from the temporary one provided initially.
verifyTextPresent Please enter a password with more than 5 characters
comment Try entering in different passwords in each field
type newPassword newPassword
type confirmPassword newPasword
click passwordChangeForm
assertAlert Passwords do not match
comment Enter valid passwords
type newPassword newPassword
type confirmPassword newPassword
clickAndWait passwordChangeForm
assertTitle VIVO Site Administration
comment Verify new account is logged in and has access to correct options
verifyTextPresent Logged in as Sis Admin (Log out)
verifyTextPresent Data Input
verifyTextPresent Site Configuration
verifyTextPresent Ontology Editor
verifyTextPresent Advanced Data Tools
comment log out
clickAndWait link=Log out
assertTitle VIVO