AddSubClassHours
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 VIVO Site Administration
comment Must log in as site admin
type username testAdmin
type password Password
clickAndWait loginSubmitMode
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 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=Log out
assertTitle VIVO