CreateActivity
comment Validate adding Activity
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
assertTitle VIVO
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
verifyTextPresent Data Input
comment Select to add then cancel right away
select VClassURI label=Grant (core)
clickAndWait //input[@value='Add individual of this class']
assertTitle Edit
verifyTextPresent Create a new Grant
clickAndWait link=Cancel
assertTitle VIVO Site Administration
comment Select to add then enter empty field
select VClassURI label=Grant (core)
clickAndWait //input[@value='Add individual of this class']
assertTitle Edit
verifyTextPresent Create a new Grant
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
comment Now enter something in the field
type label Primate Elderly Care
clickAndWait submit
assertTitle Primate Elderly Care
comment Test overview entry (image and webpage have been tested)
clickAndWait //h3[@id='administeredBy']/a/img
assertTitle Edit
verifyTextPresent Select an existing Organization for Primate Elderly Care
select objectVar label=Primate Colleges of the World
clickAndWait submit
assertTitle Primate Elderly Care
clickAndWait //h3[@id='grantAwardedBy']/a/img
assertTitle Edit
verifyTextPresent Select an existing Organization for Primate Elderly Care
select objectVar label=Primate Research Laboratory
clickAndWait submit
assertTitle Primate Elderly Care
clickAndWait //h3[@id='abstract']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: abstract
type tinymce Purpose of grant is to determine the appropriate environment, physical activity, and diet for primates as they age.
clickAndWait submit
assertTitle Primate Elderly Care
clickAndWait //h3[@id='grantSubcontractedThrough']/a
assertTitle Edit
select objectVar label=Primate Colleges of the World
clickAndWait submit
assertTitle Primate Elderly Care
clickAndWait //h3[@id='totalAwardAmount']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: total award amount
type tinymce $1,234,567
clickAndWait submit
assertTitle Primate Elderly Care
clickAndWait //h3[@id='grantDirectCosts']/a/img
assertTitle Edit
type tinymce $999,999
clickAndWait submit
assertTitle Primate Elderly Care
clickAndWait //h3[@id='sponsorAwardId']/a/img
assertTitle Edit
type tinymce 1234-5678
clickAndWait submit
assertTitle Primate Elderly Care
comment Test geographic focus
clickAndWait //h3[@id='geographicFocus']/a/img
assertTitle Edit
select objectVar label=Africa
clickAndWait submit
assertTitle Primate Elderly Care
comment Test time entry
clickAndWait //h3[@id='dateTimeInterval']/a/img
assertTitle Edit
type startField.year 2010
select startField.month label=9
select startField.day label=1
type endField.year 2012
select endField.month label=8
select endField.day label=31
clickAndWait submit
assertTitle Primate Elderly Care
comment Test identity entry
clickAndWait //h3[@id='localAwardId']/a/img
assertTitle Edit
verifyTextPresent Add new entry for: local award id
type tinymce P999-1234
clickAndWait submit
assertTitle Primate Elderly Care
comment Test other entry
clickAndWait //h3[@id='fundingVehicleFor']/a/img
assertTitle Edit
verifyTextPresent Add an entry to: funding vehicle for
select objectVar label=Primate Student of the Year
clickAndWait submit
assertTitle Primate Elderly Care
clickAndWait //h3[@id='hasSubjectArea']/a/img
assertTitle Edit
verifyTextPresent Select an existing Subject Area for Primate Elderly Care
clickAndWait //input[@id='submit' and @value='add a new item to this list']
assertTitle Edit
verifyTextPresent Edit "subject area" entry for Primate Elderly Care
type name Elderly Care
clickAndWait submit
assertTitle Primate Elderly Care
comment Verify everything entered is displaying properly
verifyTextPresent Primate Colleges of the World Consortium
verifyTextPresent Primate Research Laboratory Laboratory
verifyTextPresent Purpose of grant is to determine the appropriate environment, physical activity, and diet for primates as they age.
verifyTextPresent Primate Colleges of the World Consortium
verifyTextPresent $1,234,567
verifyTextPresent $999,999
verifyTextPresent 1234-5678
verifyTextPresent September 1, 2010 - August 31, 2012
verifyTextPresent P999-1234
verifyTextPresent Primate Student of the Year Award or Honor
verifyTextPresent Elderly Care Subject Area
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO