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 Log in to VIVO
comment Must log in as site admin
type loginName testAdmin
type loginPassword Password
clickAndWait loginForm
assertTitle VIVO
clickAndWait link=Site Admin
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=dateTimeInterval (core)
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
select NamespaceInverse label=Bibontology
select DomainVClassURI label=Museum (VIVO core)
type LocalNameInverse visitingHoursFor
type RangePublic visiting hours for
select RangeVClassURI label=Date/Time Interval (VIVO core)
type DomainDisplayTier 100
click OfferCreateNewOption
clickAndWait primaryAction
assertTitle Object Property Control Panel
comment Verify visiting hours has been properly added
verifyElementPresent link=visiting hours
verifyElementPresent link=exact:core:dateTimeInterval
verifyElementPresent link=exact:core:Museum
verifyElementPresent link=exact:core:Date/Time Interval
verifyTextPresent visiting hours
verifyTextPresent Place
verifyTextPresent domain: 100, range: -1
verifyTextPresent editor,curator,dbAdmin
verifyTextPresent dbAdmin only
verifyTextPresent unspecified
verifyTextPresent true
verifyTextPresent false
verifyTextPresent http://purl.org/ontology/bibo/visitingHours
comment Log out
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO