AssociateLibToFac
deleteAllVisibleCookies
setTimeout 500000
comment Associate Librarians to Faculty
open /vivo/
assertTitle VIVO
comment Must not be logged in
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 Put Jane's title back
clickAndWait link=Index
assertTitle Index of Contents
clickAndWait link=Faculty Member
assertTitle Faculty Member
clickAndWait link=Faculty, Jane
assertTitle Faculty, Jane
clickAndWait css=a.add-preferredTitle > img.add-individual
assertTitle Edit
type tinymce Assistant Professor
clickAndWait submit
assertTitle Faculty, Jane
comment Navigate to the core:Librarian in the ontology
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
clickAndWait link=Class hierarchy
assertTitle Class Hierarchy
verifyTextPresent core:Librarian
clickAndWait link=exact:core:Librarian
assertTitle Class Control Panel
clickAndWait //input[@value='New Link to Superclass']
assertTitle Super/Subclass Editing Form
comment Create the link
select SuperclassURI label=core:Faculty Member
select SubclassURI label=core:Librarian
clickAndWait primaryAction
assertTitle Class Control Panel
comment Make sure Lilly Librarian shows up in both categories
clickAndWait link=People
assertTitle People
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
refreshAndWait 10000
click link=Faculty Member (2)
assertTitle People
verifyElementPresent link=Faculty, Jane
verifyTextPresent Assistant Professor
verifyElementPresent link=Lily Librarian
verifyTextPresent Assistant Librarian
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO