CreateLibrarian
deleteAllVisibleCookies
setTimeout 100000
comment Create Librarian person
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Must login as site admin
type loginName testAdmin@cornell.edu
type loginPassword Password
clickAndWait loginForm
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
comment Navigate to add new individual page
select VClassURI label=Librarian (vivo)
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 css=a.add-preferredTitle > img.add-individual
assertTitle Edit
waitForElementPresent tinymce
type tinymce Assistant Librarian
clickAndWait submit
assertTitle Librarian, Lily
pause 10000
comment Verify that librarian was added sucessfully
verifyTextPresent Librarian, Lily
verifyTextPresent Assistant Librarian
comment Browse for new librarian
clickAndWait link=Index
verifyElementPresent link=Faculty Member
verifyTextPresent Faculty Member (1)
verifyElementPresent link=Librarian
verifyTextPresent Librarian (1)
verifyElementPresent link=Person
verifyTextPresent Person (2)
clickAndWait link=Librarian
assertTitle Librarian
verifyElementPresent link=Librarian, Lily
verifyTextPresent Librarian, Lily Assistant Librarian
comment Search for new librarian
type querytext librarian
clickAndWait //input[@value='Search']
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