CreateTestLibrarian
comment Create Librarian person
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 add new individual page
select VClassURI label=Librarian (core)
clickAndWait //input[@value='Add individual of this class']
assertTitle Individual Editing Form
verifyTextPresent Creating New Record
comment Create new indiviidual
type Name Lilly Librarian
type MonikerSelectAlt Assistant Librarian
clickAndWait primaryAction
assertTitle Individual Control Panel
comment Verify that individual was added sucessfully
verifyTextPresent Lilly Librarian
clickAndWait link=Index
assertTitle Index to VIVO Contents
verifyTextPresent Librarian
clickAndWait link=Librarian
assertTitle Librarian
comment Take a break for indexing
pause 50000
refreshAndWait
comment Search for new librarian
type search lilly librarian
clickAndWait submit
assertTitle lilly librarian - VIVO Search Results
verifyTextPresent Search Results for 'lilly librarian'
verifyElementPresent link=Lilly Librarian
verifyTextPresent Lilly Librarian | Assistant Librarian
comment Logout
clickAndWait link=Log out
assertTitle VIVO