AddBook
deleteAllVisibleCookies
setTimeout 100000
comment Add Grants
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
comment Navigate to Frank Furter
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Furter, Frank
assertTitle Furter, Frank
comment Add first grant
clickAndWait //h3[@id='hasPrincipalInvestigatorRole']/a/img
assertTitle Edit
type relatedIndLabel Games and Kids: The Impact
type startYear 2002
type endYear 2004
clickAndWait submit
assertTitle Furter, Frank
comment Add second grant
clickAndWait //h3[@id='hasInvestigatorRole']/a/img
assertTitle Edit
type relatedIndLabel Childhood Development in the 21st Century
type startYear 2006
clickAndWait submit
assertTitle Furter, Frank
comment Add third grant
clickAndWait //h3[@id='hasCo-PrincipalInvestigatorRole']/a/img
assertTitle Edit
type relatedIndLabel Future of Children
type startYear 2007
type endYear 2008
clickAndWait submit
assertTitle Furter, Frank
comment Add fourth grant
clickAndWait //h3[@id='hasCo-PrincipalInvestigatorRole']/a/img
assertTitle Edit
type relatedIndLabel Nix Nintendo?
type startYear 2010
clickAndWait submit
assertTitle Furter, Frank
comment Verify Network Display
clickAndWait link=Co-Investigator Network
pause 5000
assertTitle Furter, Frank - Person Level Visualization
verifyTextPresent 4   Grant(s)
verifyTextPresent 0   Co-investigator(s)
comment Log out
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO