AddResearchFocus1
comment Test Custom Form: Research Focus and Activity
deleteAllVisibleCookies
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle VIVO Site Administration
comment Must login as site admin
type username testAdmin
type password Password
clickAndWait loginSubmitMode
assertTitle VIVO Site Administration
comment Navigate to test faculty member via Index
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Jane Faculty
assertTitle Jane Faculty
comment Verify that you won't be creating a duplicate
verifyTextNotPresent Cancer Treatment Drug Interactions
verifyTextNotPresent Lead Researcher
verifyTextNotPresent 01/2001 - 01/2002
clickAndWait //div[@id='oprop-core-hasResearchActivity']/a
assertTitle Edit
comment Type in activity information
type label Cancer Treatment Drug Interactions
type description Testing new cancer treatment drugs with other drugs to determine interactions.
type role Lead Researcher
type startYearMonth 2001-01
type endYearMonth 2002-01
clickAndWait submit
assertTitle Jane Faculty
comment Verify activity info was added properly
verifyTextPresent Cancer Treatment Drug Interactions
verifyTextPresent Lead Researcher
verifyTextPresent 01/2001 - 01/2002
comment Log out
clickAndWait link=Log out
assertTitle VIVO