AddOntology
comment Add SWRC ontology
deleteAllVisibleCookies
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
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO
clickAndWait link=Site Admin
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='All Ontologies']
assertTitle Ontologies
verifyTextPresent SWRC
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO