AddObjPropVisitingHours
comment Add Object Property visiting hours to Property Group Place
deleteAllVisibleCookies
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 Object Properties
clickAndWait link=Object property hierarchy
assertTitle Object Property Hierarchy
comment Verify visiting hours does not already exist
verifyElementNotPresent link=visiting hours
clickAndWait //input[@value='Add new object property']
assertTitle Property Editing Form
comment Add visiting hours
select ParentURI label=time (event)
select GroupURI label=Place
select HiddenFromDisplayBelowRoleLevelUsingRoleUri label=editor,curator,dbAdmin
select ProhibitedFromUpdateBelowRoleLevelUsingRoleUri label=dbAdmin only
select Namespace label=Bibontology
type LocalName visitingHours
type DomainPublic visiting hours
type RangePublic visiting hours for
select NamespaceInverse label=Bibontology
select DomainVClassURI label=Museum (VIVO core)
select RangeVClassURI label=Time Interval (VIVO core)
type DomainDisplayTier 100
click OfferCreateNewOption
clickAndWait //input[@value='Create New Record']
assertTitle Object Property Control Panel
comment Verify visiting hours has been properly added
verifyElementPresent link=visiting hours
verifyElementPresent link=exact:event:time
verifyElementPresent link=exact:core:Museum
verifyElementPresent link=exact:core:Time Interval
verifyTextPresent visiting hours
verifyTextPresent Place
verifyTextPresent domain: 100, range: -1
verifyTextPresent editor,curator,dbAdmin
verifyTextPresent dbAdmin only
clickAndWait //input[@value='See All Properties']
assertTitle Object Properties
verifyElementPresent link=visiting hours
comment Log out
clickAndWait link=Log out
assertTitle VIVO