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 Site Administration
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 a new 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 a new 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 a new presentation entry for Librarian, Lily
open /vivo/edit/editRequestDispatch.jsp?subjectUri=http%3A%2F%2Fvivo.local.edu%2Findividual%2Fn6284&predicateUri=http%3A%2F%2Fvivoweb.org%2Fontology%2Fcore%23hasPresenterRole
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 a new presentation entry for Librarian, Lily
open /vivo/edit/editRequestDispatch.jsp?subjectUri=http%3A%2F%2Fvivo.local.edu%2Findividual%2Fn6284&predicateUri=http%3A%2F%2Fvivoweb.org%2Fontology%2Fcore%23hasPresenterRole
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 a new 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 a new 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 Researching Primates
comment Navigate back to Jane Faculty
clickAndWait link=Index
assertTitle Index to VIVO Contents
clickAndWait link=Librarian
assertTitle Librarian
clickAndWait link=Librarian, Lily
assertTitle Librarian, Lily
comment Add presentation correctly
clickAndWait //div[@id='hasPresenterRole']/a
assertTitle Edit
verifyTextPresent Create a new presentation entry for Librarian, Lily
verifyTextPresent Presentation Type
select typeSelector label=Invited Talk
verifyTextPresent Create a new 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 Animal Librarianship
comment Navigate back to Jane Faculty
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 Log out
clickAndWait link=Log out
assertTitle VIVO