DeleteNewCuratorUser
deleteAllVisibleCookies
setTimeout 100000
comment Delete all test user account
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 Go to User Accounts
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
clickAndWait link=User accounts
assertTitle VIVO
comment Verify 3 user accounts exist before trying to delete them
verifyElementPresent link=EddieEditor@cornell.edu
verifyElementPresent link=JaneFaculty@cornell.edu
verifyElementPresent link=PollyProxy@cornell.edu
comment Delete the accounts
assertTitle VIVO
click name=deleteAccount
clickAndWait name=delete-account
assertTitle VIVO
click name=deleteAccount
click name=delete-account
assertConfirmation Are you sure you want to delete this account?
waitForPageToLoad 5000
assertTitle VIVO
click name=deleteAccount
click name=delete-account
assertConfirmation Are you sure you want to delete this account?
waitForPageToLoad 5000
assertTitle VIVO
verifyTextPresent 5 accounts
comment Verify 3 user accounts are gone
verifyElementNotPresent link=EddieEditor@cornell.edu
verifyElementNotPresent link=JaneFaculty@cornell.edu
verifyElementNotPresent link=PollyProxy@cornell.edu
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO