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
verifyTextNotPresent Site Configuration
verifyElementNotPresent 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 Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO