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 JaneFaculty@cornell.edu
type first-name Jane
type last-name Faculty
click //input[@name='role' and @value='http://permissionSet-1']
clickAndWait submitAdd
type initial-password myPassword
type confirm-password myPassword
clickAndWait submitAdd
assertTitle VIVO
comment Verify account
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
comment Logout
clickAndWait link=Log out
assertTitle VIVO