AddDataPropArchDetails
comment Add Data Property of architectual details to the Place Propery Group
deleteAllVisibleCookies
setTimeout 100000
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@cornell.edu
type loginPassword Password
clickAndWait loginForm
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
comment Navigate to Data Property Hierarchy
clickAndWait link=Data property hierarchy
assertTitle VIVO
comment Verify that architectural details does not already exist
verifyElementNotPresent link=architectural details
clickAndWait //input[@value='Add new data property']
assertTitle Data Property Editing Form
comment Add architectural details
type PublicName architectural details
select GroupURI label=Place
select HiddenFromDisplayBelowRoleLevelUsingRoleUri label=editor, curator, site administrator
select ProhibitedFromUpdateBelowRoleLevelUsingRoleUri label=public
select Namespace label=VIVO core
type LocalName architecturalDetails
select DomainClassURI label=Agent (FOAF)
select RangeDatatypeURI label=string
clickAndWait primaryAction
assertTitle Data Property Control Panel
comment Verify that architectural details has been added properly
verifyTextPresent exact:vivo:architecturalDetails
verifyTextPresent VIVO core
verifyTextPresent architectural details
verifyElementPresent link=exact:http://xmlns.com/foaf/0.1/Agent
verifyTextPresent http://www.w3.org/2001/XMLSchema#string
verifyTextPresent Place
verifyTextPresent editor, curator, site administrator
verifyTextPresent public
comment Check data properties hierarchy
clickAndWait link=Site Admin
assertTitle VIVO Site Administration
clickAndWait link=Data property hierarchy
assertTitle VIVO
verifyElementPresent link=architectural details
verifyTextPresent Local Name: vivo:architecturalDetails
verifyTextPresent Group: Place
verifyTextPresent Domain Class: foaf:Agent
verifyTextPresent Range Class:string
clickAndWait link=architectural details
assertTitle Data Property Control Panel
verifyElementPresent link=exact:http://xmlns.com/foaf/0.1/Agent
comment Log out
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO