CreateTopic
comment Validate adding Topic
deleteAllVisibleCookies
setTimeout 100000
open /vivo/
assertTitle VIVO
comment Must be logged off to start
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Must login as the site admin
type loginName testAdmin@cornell.edu
type loginPassword Password
clickAndWait loginForm
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
verifyTextPresent Data Input
comment Select to add then cancel right away
select VClassURI label=Concept (skos)
clickAndWait //input[@value='Add individual of this class']
assertTitle Edit
verifyTextPresent Create a new Concept
clickAndWait link=Cancel
assertTitle VIVO Site Administration
comment Select to add then enter empty field
select VClassURI label=Concept (skos)
clickAndWait //input[@value='Add individual of this class']
assertTitle Edit
verifyTextPresent Create a new Concept
clickAndWait submit
assertTitle Edit
verifyTextPresent Please enter a value in the name field.
comment Now enter something in the field
type label Primate Health
clickAndWait submit
assertTitle Primate Health
comment Test overview entry (image and webpage have been tested)
clickAndWait //h3[@id='broader']/a/img
assertTitle Edit
verifyTextPresent Select an existing Concept for Primate Health
select objectVar label=Animal Health
clickAndWait submit
assertTitle Primate Health
comment Test other entry
clickAndWait //h3[@id='narrower']/a/img
assertTitle Edit
verifyTextPresent Select an existing Concept for Primate Health
clickAndWait //input[@id='submit' and @value='Add a new item of this type']
assertTitle Edit
verifyTextPresent Create "narrower term" entry for Primate Health
type name Primate Diet
clickAndWait submit
assertTitle Primate Health
clickAndWait //h3[@id='related']/a/img
assertTitle Edit
verifyTextPresent Select an existing Concept for Primate Health
clickAndWait //input[@id='submit' and @value='Add a new item of this type']
assertTitle Edit
verifyTextPresent Create "related" entry for Primate Health
type id=name Ape Health
clickAndWait id=submit
assertTitle Primate Health
comment Verify everything entered is displaying properly
verifyTextPresent Animal Health
verifyTextPresent Primate Diet
verifyTextPresent Ape Health
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO