AddProfessionalService2
comment Test Custom Form Again: Professional 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@cornell.edu
type loginPassword 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 the first entry is there
verifyTextPresent Private practice
verifyTextPresent Doctor
verifyTextPresent 06/1990
comment Verify that you won't be creating a duplicate
verifyTextNotPresent AMA
verifyTextNotPresent President
verifyTextNotPresent 08/2008 - 09/2009
clickAndWait //div[@id='oprop-core-hasProfessionalServiceActivity']/a
assertTitle Edit
comment Type in activity information
type label AMA
type description Won election.
type role President
type startYearMonth 2008-08
type endYearMonth 2009-09
clickAndWait submit
assertTitle Jane Faculty
comment Verify activity info for both are there
verifyTextPresent Private practice
verifyTextPresent Doctor
verifyTextPresent 06/1990
verifyTextPresent AMA
verifyTextPresent President
verifyTextPresent 08/2008 - 09/2009
comment Log out
clickAndWait link=Log out
assertTitle VIVO