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=Person (foaf)
clickAndWait //input[@value='Add individual of this class']
verifyTextPresent Create a new Person
comment Create a librarian individual
type firstName Paula
type lastName Proxy
clickAndWait submit
assertTitle Proxy, Paula
comment Make individual an Assistant Librarian
clickAndWait css=a.add-preferredTitle > img.add-individual
assertTitle Edit
type tinymce Administrative Assistant
clickAndWait submit
assertTitle Proxy, Paula
pause 50000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
comment Verify that librarian was added sucessfully
verifyTextPresent Proxy, Paula
verifyTextPresent Administrative Assistant
comment Browse for new librarian
clickAndWait link=Index
verifyElementPresent link=Person
verifyTextPresent Person (1)
verifyElementPresent link=Person
clickAndWait link=Person
assertTitle Person
verifyElementPresent link=Proxy, Paula
verifyTextPresent Proxy, Paula Administrative Assistant
comment Search for new librarian
type querytext administrative
clickAndWait //input[@value='Search']
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
assertTitle administrative - VIVO Search Results
verifyTextPresent Search results for 'administrative'
verifyElementPresent link=Proxy, Paula
verifyTextPresent Proxy, Paula Administrative Assistant
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO