AddOutreachService1
comment Test Custom Form: Outreach & Community Service
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 Free Cancer Screening Clinic
verifyTextNotPresent Founder
verifyTextNotPresent 12/2001 - 12/2012
clickAndWait //div[@id='oprop-core-hasOutreachActivity']/a
assertTitle Edit
comment Type in activity information
type label Free Cancer Screening Clinic
type description Founder of clinic to conduct free cancer screenings.
type role Founder
type startYearMonth 2001-12
type endYearMonth 2012-12
clickAndWait submit
assertTitle Jane Faculty
comment Verify activity info was added properly
verifyTextPresent Free Cancer Screening Clinic
verifyTextPresent Founder
verifyTextPresent 12/2001 - 12/2012
comment Log out
clickAndWait link=Log out
assertTitle VIVO