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 Log in to VIVO
comment Must login as the site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
comment Navigate to Jane Faculty
clickAndWait link=Index
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Start to add presentation and cancel out
clickAndWait //h3[@id='hasPresenterRole']/a/img
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 //h3[@id='hasPresenterRole']/a/img
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 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 roleLabel Presenter
type startField.year 2009
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Add presentation type of invited talk
clickAndWait //h3[@id='hasPresenterRole']/a/img
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 roleLabel Member of panel
type startField.year 2003
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Verify presentations display
verifyElementPresent link=Animal Librarianship
verifyTextPresent Animal Librarianship Member of panel 2003 -
verifyElementPresent link=Researching Primates
verifyTextPresent Researching Primates Presenter 2009 -
comment Add service to the profession - college
clickAndWait //h3[@id='hasServiceProviderRole']/a/img
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 roleLabel Consultant
type startField.year 2010
type endField.year
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Add service to the profession - college
clickAndWait //h3[@id='hasServiceProviderRole']/a/img
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 roleLabel Board
type startField.year 2001
type endField.year 2003
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Verify that service to the profession displays
verifyElementPresent link=Primates of the World
verifyTextPresent Primates of the World Board 2001 - 2003
verifyElementPresent link=Carroll College
verifyTextPresent Carroll College Consultant 2010 -
comment Add outreach and community service - committee
clickAndWait //h3[@id='hasOutreachProviderRole']/a/img
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 roleLabel Chair
type startField.year 2009
type endField.year
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Add outreach and community service - event
clickAndWait //h3[@id='hasOutreachProviderRole']/a/img
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 roleLabel Booth
type startField.year 2001
type endField.year 2001
clickAndWait submit
assertTitle Librarian, Lily
comment Navigate back to Lily Librarian
clickAndWait link=Index
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Verify outreach and community service display
verifyElementPresent link=Show Me the Primates!
verifyTextPresent Show Me the Primates! Booth 2001
verifyElementPresent link=Librarians for the Better Treatment of Primates
verifyTextPresent Librarians for the Better Treatment of Primates Chair 2009 -
comment Log out
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO