AddSubClassHours
deleteAllVisibleCookies
comment Add sub-class of Hours to class Times
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle Log in to VIVO
comment Must log in as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO Site Administration
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
comment Navigate to Class heirarchy
clickAndWait link=Class hierarchy
assertTitle Class Hierarchy
comment Verify sub-class Hours does not already exist
verifyElementNotPresent link=exact:core:Hours
clickAndWait //input[@value='Add new class']
assertTitle Class Editing Form
comment Add Hours new sub-class
type Name Hours
select HiddenFromDisplayBelowRoleLevelUsingRoleUri label=dbAdmin only
select ProhibitedFromUpdateBelowRoleLevelUsingRoleUri label=dbAdmin only
select GroupURI label=Times
select Namespace label=VIVO core
type LocalName hours
clickAndWait primaryAction
assertTitle Class Control Panel
comment Verify new Times sub-class Hours added
verifyTextPresent exact:core:Hours
verifyTextPresent Times
verifyTextPresent dbAdmin only
verifyTextPresent exact:http://vivoweb.org/ontology/core#hours
clickAndWait //input[@value='Show All Classes']
assertTitle Classes
verifyElementPresent link=exact:core:Hours
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO