AddTeachingFocus2
comment Test Custom Form Again: Teaching 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 the first entry is there
verifyTextPresent Drug Interactions
verifyTextPresent Associate Professor
verifyTextPresent 02/2001 - 02/2012
comment Verify that you won't be creating a duplicate
verifyTextNotPresent Introduction to Drugs
verifyTextNotPresent Lecturer
verifyTextNotPresent 04/2003 - 04/2007
clickAndWait //div[@id='oprop-core-hasTeachingActivity']/a
assertTitle Edit
comment Type in activity information
type label Introduction to Drugs
type description Intoduces first year pre-med students to drugs.
type role Lecturer
type startYearMonth 2003-04
type endYearMonth 2007-04
clickAndWait submit
assertTitle Jane Faculty
comment Verify activity info for both are there
verifyTextPresent Drug Interactions
verifyTextPresent Associate Professor
verifyTextPresent 02/2001 - 02/2012
verifyTextPresent Introduction to Drugs
verifyTextPresent Lecturer
verifyTextPresent 04/2003 - 04/2007
comment Log out
clickAndWait link=Log out
assertTitle VIVO