AddOntology
comment Add SWRC ontology
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle VIVO Site Administration
comment Must login as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO Site Administration
comment Navigate to Ontology List
clickAndWait link=Ontology list
assertTitle Ontologies
comment Make sure SWRC does not already exist
verifyTextNotPresent SWRC
clickAndWait //input[@value='Add new ontology']
assertTitle Ontology Editing Form
comment Add SWRC
type Name SWRC
type URI http://swrc.ontoware.org/ontology
type Prefix swrc
clickAndWait primaryAction
assertTitle Ontology Control Panel
comment Verify that SWRC has been added
verifyTextPresent SWRC
verifyTextPresent http://swrc.ontoware.org/ontology#
verifyTextPresent swrc
clickAndWait //input[@value='Show All Ontologies']
assertTitle Ontologies
verifyTextPresent SWRC
comment Logout
clickAndWait link=Log out
assertTitle VIVO