NewAdminDelete
comment Remove test site admin account
deleteAllVisibleCookies
setTimeout 10000000
comment Must not be logged in already
open /vivo/
assertTitle VIVO
comment Must log in as site admin
clickAndWait link=Log in
assertTitle Log in to VIVO
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 that Sis Admin account does indeed exist
verifyElementPresent link=SisAdmin@cornell.edu
comment Delete Sis Admin account
click deleteAccount
clickAndWait //form[@id='account-display']/section[2]/input
assertConfirmation Are you sure you want to delete this account?
waitForPageToLoad 5000
assertTitle VIVO
verifyTextPresent Deleted 1 accounts.
verifyTextPresent User accounts
comment Verify Sis Admin account is gone
verifyElementNotPresent =SisAdmin@cornell.edu
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO