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 Navigate to the core:Librarian in the ontology
clickAndWait link=Class hierarchy
assertTitle VIVO
verifyTextPresent Asserted Class Hierarchy
verifyTextPresent vivo:Librarian
clickAndWait link=exact:vivo:Librarian
assertTitle Class Control Panel
clickAndWait //input[@value='New Link to Superclass']
assertTitle Super/Subclass Editing Form
comment Create the link
select SuperclassURI label=vivo:Faculty Member
select SubclassURI label=vivo: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)
pause 5000
assertTitle People
verifyElementPresent link=Faculty, Jane
verifyTextPresent Assistant Professor
verifyElementPresent link=Librarian, Lily
verifyTextPresent Assistant Librarian
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO