CreateNewNobodyUser
deleteAllVisibleCookies
setTimeout 10000000
comment Create a new unprivileged user
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Must login as site admin
type loginName testAdmin@cornell.edu
type loginPassword Password
clickAndWait loginForm
comment Create a new user
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 RickRookie@cornell.edu
type first-name Rick
type last-name Rookie
click xpath=(//input[@name='role'])[4]
type initial-password myPassword
type confirm-password myPassword
clickAndWait submitAdd
assertTitle VIVO
comment Verify account
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
verifyElementPresent link=RickRookie@cornell.edu
verifyTextPresent Rick
verifyTextPresent Rookie
verifyTextPresent ACTIVE
verifyTextPresent Self Editor
verifyTextPresent 0
comment Logout
clickAndWait link=Log out
assertTitle VIVO