CreateNewNobodyUser
deleteAllVisibleCookies
setTimeout 10000000
open /vivo/
assertTitle VIVO
clickAndWait link=Log in
assertTitle Log in to VIVO
type loginName testAdmin@cornell.edu
type loginPassword Password
clickAndWait loginForm
clickAndWait link=Site Admin
clickAndWait link=User accounts
assertTitle VIVO
verifyTextPresent User accounts
clickAndWait //input[@value='Add new account']
assertTitle VIVO
verifyTextPresent User accounts > Add new account
type email-address JaneFaculty@cornell.edu
type first-name Jane
type last-name Faculty
type id=externalAuthId JaneFaculty@cornell.edu
type id=associateProfileName
sendKeys id=associateProfileName facult
pause 5000
sendKeys id=associateProfileName ${KEY_DOWN}
click id=ui-active-menuitem
click xpath=(//input[@name='role'])[4]
type initial-password myPassword
type confirm-password myPassword
clickAndWait submitAdd
assertTitle VIVO
verifyTextPresent A new account for Jane Faculty was successfully created.
verifyElementPresent link=JaneFaculty@cornell.edu
verifyTextPresent Jane
verifyTextPresent Faculty
verifyTextPresent ACTIVE
verifyTextPresent Self Editor
verifyTextPresent 0
clickAndWait link=Log out
assertTitle VIVO