CreateLibrarian
deleteAllVisibleCookies
comment Create Librarian person
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle VIVO
comment Must login as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO Site Administration
comment Navigate to add new individual page
select VClassURI label=Librarian (core)
clickAndWait //input[@value='Add individual of this class']
verifyTextPresent Create a new Librarian
comment Create a librarian individual
type firstName Lily
type lastName Librarian
clickAndWait submit
assertTitle Librarian, Lily
comment Make individual an Assistant Librarian
clickAndWait link=edit this individual
assertTitle Individual Control Panel
clickAndWait //input[@value='Edit This Individual']
assertTitle Individual Editing Form
type MonikerSelectAlt Assistant Librarian
clickAndWait primaryAction
assertTitle Individual Control Panel
comment Verify that individual was added sucessfully
verifyTextPresent Librarian, Lily
verifyTextPresent Assistant Librarian
clickAndWait link=Index
assertTitle Index to VIVO Contents
verifyTextPresent Librarian
clickAndWait link=Librarian
assertTitle Librarian
verifyElementPresent link=Librarian, Lily
verifyTextPresent Assistant Librarian
comment Search for new librarian
type querytext librarian
clickAndWait //input[@value='Search']
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
assertTitle librarian - VIVO Search Results
verifyTextPresent Search results for 'librarian'
verifyElementPresent link=Librarian, Lily
verifyTextPresent Librarian, Lily | Assistant Librarian
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO