CreateTopic
comment Validate adding Topic
deleteAllVisibleCookies
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
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=Subject Area (core)
clickAndWait //input[@value='Add individual of this class']
assertTitle Edit
verifyTextPresent Create a new Subject Area
clickAndWait link=Cancel
assertTitle VIVO Site Administration
comment Select to add then enter empty field
select VClassURI label=Subject Area (core)
clickAndWait //input[@value='Add individual of this class']
assertTitle Edit
verifyTextPresent Create a new Subject Area
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
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 Subject Area for Primate Health
select objectVar label=Animal Health
clickAndWait submit
assertTitle Primate Health
comment Test affiliation entry
clickAndWait //h3[@id='researchAreaOf']/a/img
assertTitle Edit
verifyTextPresent Add an entry to: research area of
clickAndWait submit
assertTitle Primate Health
comment Test links entry
clickAndWait //h3[@id='sourceVocabularyReference']/a/img
assertTitle Edit
verifyTextPresent Select an existing Vocabulary Source Reference for Primate Health
clickAndWait submit
assertTitle Edit
type name Not sure
clickAndWait submit
assertTitle Primate Health
comment Test other entry
clickAndWait //h3[@id='subjectAreaFor']/a/img
assertTitle Edit
verifyTextPresent Select an existing Thing for Primate Health
select objectVar label=Introduction to Primate Health
clickAndWait submit
assertTitle Primate Health
clickAndWait //h3[@id='narrower']/a/img
assertTitle Edit
verifyTextPresent Select an existing Subject Area for Primate Health
clickAndWait //input[@id='submit' and @value='add a new item to this list']
assertTitle Edit
verifyTextPresent Edit "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 Subject Area for Primate Health
select objectVar label=Elderly Care
clickAndWait submit
assertTitle Primate Health
comment Verify everything entered is displaying properly
verifyTextPresent Animal Health
verifyTextPresent Faculty, Jane Assistant Professor
verifyTextPresent Not sure
verifyTextPresent Introduction to Primate Health
verifyTextPresent Primate Diet
verifyTextPresent Elderly Care
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO