CheckEditorPrivileges
deleteAllVisibleCookies
setTimeout 100000
comment Check Editor privileges
open /vivo/
assertTitle VIVO
comment Must not be logged in
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Log in as Eddie Editor
type loginName EddieEditor@cornell.edu
type loginPassword newPassword
clickAndWait loginForm
comment Check privileges: should see Data Input, should not see Ontology Editor, Site Configuration, Advanced Data Tools
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
verifyTextPresent Data Input
verifyTextPresent Site Configuration
verifyElementPresent link=Manage Profile Editing
verifyElementNotPresent link=Site information
verifyElementNotPresent link=Menu management
verifyElementNotPresent link=Institutional internal class
verifyElementNotPresent link=User accounts
verifyElementNotPresent link=Startup Status
verifyTextNotPresent Ontology Editor
verifyElementNotPresent link=Ontology list
verifyTextNotPresent Class Management
verifyElementNotPresent link=Class hierarchy
verifyElementNotPresent link=Class groups
verifyTextNotPresent Property Management
verifyElementNotPresent link=Object property hierarchy
verifyElementNotPresent link=Data property hierarchy
verifyElementNotPresent link=Property groups
verifyTextNotPresent Advanced Data Tools
verifyElementNotPresent link=Ingest tools
verifyElementNotPresent link=Add/Remove RDF data
verifyElementNotPresent link=RDF export
verifyElementNotPresent link=SPARQL query
verifyElementNotPresent link=SPARQL query builder
verifyTextNotPresent Refresh Content
verifyElementNotPresent link=Rebuild search index
verifyElementNotPresent link=Rebuild class group cache
verifyElementNotPresent link=Rebuild visualization cache
verifyElementNotPresent link=Recompute inferences
comment Verify that link actually work
clickAndWait link=Manage profile editing
assertTitle VIVO Site Administration
verifyTextNotPresent We're sorry, but you are not authorized to view the page you requested. If you think this is an error, please contact us and we'll be happy to help.
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO