AddLibrarianRoles1
comment Add 3 roles for Lily Librarian
deleteAllVisibleCookies
open /vivo/
assertTitle VIVO
comment Must be logged off to start
clickAndWait link=Log in
assertTitle VIVO
comment Must login as the site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO Site Administration
comment Navigate to Jane Faculty
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Start to add presentation and cancel out
clickAndWait //div[@id='hasPresenterRole']/a
assertTitle Edit
verifyTextPresent Create presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
clickAndWait link=Cancel
assertTitle Librarian, Lily
comment Select presentation type then cancel out
clickAndWait //div[@id='hasPresenterRole']/a
assertTitle Edit
select typeSelector label=Presentation
verifyTextPresent Create presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
verifyTextPresent Presentation Name
verifyTextPresent Role in Presentation
verifyTextPresent Year
click link=Cancel
comment Start to add presentation again, but enter no required field
verifyTextPresent Create presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
select typeSelector label=Presentation
verifyTextPresent Presentation Name
verifyTextPresent Role in Presentation
verifyTextPresent Year
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
comment Start to add presentation again, but enter only first required field
verifyTextPresent Create presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
select typeSelector label=Presentation
verifyTextPresent Presentation Name
verifyTextPresent Role in Presentation
verifyTextPresent Year
type relatedIndLabel Researching Primates
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
comment Start to add presentation again, but enter only first 2 required fields
verifyTextPresent Create presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
verifyTextPresent Presentation Name
verifyTextPresent Role in Presentation
verifyTextPresent Year
type relatedIndLabel Researching Primates
type newIndLabel Presenter
clickAndWait submit
assertTitle Edit
verifyTextPresent This field must not be empty.
comment Add presentation correctly
verifyTextPresent Create presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
verifyTextPresent Presentation Name
verifyTextPresent Role in Presentation
verifyTextPresent Year
type relatedIndLabel Researching Primates
type newIndLabel Presenter
type startYear 2009
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Add presentation type of invited talk
clickAndWait //div[@id='hasPresenterRole']/a
assertTitle Edit
verifyTextPresent Create presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
select typeSelector label=Invited Talk
verifyTextPresent Create presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
verifyTextPresent Invited Talk Name
verifyTextPresent Role in Invited Talk
verifyTextPresent Year
type relatedIndLabel Animal Librarianship
type newIndLabel Member of panel
type startYear 2003
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Verify presentations display
verifyElementPresent link=Animal Librarianship
verifyTextPresent Member of panel 2003
verifyElementPresent //div[@id='hasPresenterRole']/ul/li[1]/span
verifyElementPresent link=Researching Primates
verifyTextPresent Presenter 2009
verifyElementPresent //div[@id='hasPresenterRole']/ul/li/span
comment Add service to the profession - college
clickAndWait //div[@id='hasServiceProviderRole']/a
assertTitle Edit
verifyTextPresent Create service to the profession entry for Librarian, Lily
verifyTextPresent Service to the Profession Type
select typeSelector label=College
verifyTextPresent College Name
verifyTextPresent Role in College
verifyTextPresent Years of Participation in College
verifyTextPresent Start Year
verifyTextPresent End Year
type relatedIndLabel Carroll College
type newIndLabel Consultant
type startYear 2010
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Add service to the profession - college
clickAndWait //div[@id='hasServiceProviderRole']/a
assertTitle Edit
verifyTextPresent Create service to the profession entry for Librarian, Lily
verifyTextPresent Service to the Profession Type
select typeSelector label=Museum
verifyTextPresent Museum Name
verifyTextPresent Role in Museum
verifyTextPresent Years of Participation in Museum
verifyTextPresent Start Year
verifyTextPresent End Year
type relatedIndLabel Primates of the World
type newIndLabel Librarian
type newIndLabel Board
type startYear 2001
type endYear 2003
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Verify that service to the profession displays
verifyTextPresent Primates of the World
verifyTextPresent Board 2001 - 2003
verifyElementPresent //div[@id='hasServiceProviderRole']/ul/li[1]/span
verifyTextPresent Carroll College
verifyTextPresent Consultant 2010 -
verifyElementPresent //div[@id='hasServiceProviderRole']/ul/li[2]/span
comment Add outreach and community service - committee
clickAndWait //div[@id='hasOutreachProviderRole']/a
assertTitle Edit
verifyTextPresent Create outreach & community service entry for Librarian, Lily
verifyTextPresent Outreach & Community Service Type
select typeSelector label=Committee
verifyTextPresent Committee Name
verifyTextPresent Role in Committee
verifyTextPresent Years of Participation in Committee
verifyTextPresent Start Year
verifyTextPresent End Year
type relatedIndLabel Librarians for the Better Treatment of Primates
type newIndLabel Chair
type startYear 2009
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Add outreach and community service - event
clickAndWait //div[@id='hasOutreachProviderRole']/a
assertTitle Edit
verifyTextPresent Create outreach & community service entry for Librarian, Lily
verifyTextPresent Outreach & Community Service Type
select typeSelector label=Event
verifyTextPresent Event Name
verifyTextPresent Role in Event
verifyTextPresent Years of Participation in Event
verifyTextPresent Start Year
verifyTextPresent End Year
type relatedIndLabel Show Me the Primates!
type newIndLabel Booth
type startYear 2001
type endYear 2001
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Verify outreach and community service display
verifyTextPresent Show Me the Primates!
verifyTextPresent Booth 2001
verifyElementPresent //div[@id='hasOutreachProviderRole']/ul/li[1]/span
verifyElementPresent link=Librarians for the Better Treatment of Primates
verifyTextPresent Chair 2009 -
verifyElementPresent //div[@id='hasOutreachProviderRole']/ul/li[2]/span
comment Log out
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO