NewAdminAccount
comment Create a second site admin account
deleteAllVisibleCookies
setTimeout 100000
comment Must not be logged in
open /vivo/
assertTitle VIVO
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Must log in as site admin
type loginName testAdmin@cornell.edu
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO
comment Select User accounts option from Site Admin page
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
clickAndWait link=User accounts
assertTitle VIVO
verifyTextPresent User accounts
comment Verify test account does not exist already
verifyTextNotPresent SisAdmin@cornell.edu
comment Add new site admin account without the First Name
clickAndWait css=input.submit.add-account
assertTitle VIVO
type email-address SisAdmin@cornell.edu
type first-name Sis
type last-name Admin
click //input[@name='role' and @value='http://permissionSet-50']
clickAndWait submitAdd
assertTitle VIVO
comment Verify new account has successfully been added
verifyTextPresent A new account for Sis Admin was successfully created. A notification email has been sent to SisAdmin@cornell.edu with instructions for activating the account and creating a password.
verifyElementPresent link=SisAdmin@cornell.edu
verifyTextPresent Sis
verifyTextPresent Admin
verifyTextPresent INACTIVE
verifyTextPresent Site Admin
verifyTextPresent 0
comment Log out
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO