AddIndividualInHours
deleteAllVisibleCookies
setTimeout 100000
comment Add Individual Daytime hours to Hours class
open /vivo/
assertTitle VIVO
comment Must not be logged in already
clickAndWait link=Log in
assertTitle Log in to VIVO
comment 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 Class hierarchy
clickAndWait link=Class hierarchy
assertTitle Class Hierarchy
comment Verify the Hours class exists
verifyElementPresent link=exact:core:Hours
comment Link to Class Hours
clickAndWait link=exact:core:Hours
assertTitle Class Control Panel
clickAndWait //input[@value='Show All Individuals in This Class']
assertTitle Individuals in Class Hours
comment Verify Daytime hours does not exist
verifyTextNotPresent Daytime hours
clickAndWait //input[@value='Add instance']
assertTitle Individual Editing Form
comment Add Individual Class hours
type Name Daytime hours
select Moniker label=[new moniker]
type MonikerSelectAlt Hours of day
clickAndWait primaryAction
assertTitle Individual Control Panel
comment Verify that Day hours has been added
verifyTextPresent Daytime hours
verifyTextPresent Hours of day
verifyElementPresent link=exact:core:Hours
clickAndWait link=exact:core:Hours
assertTitle Class Control Panel
clickAndWait //input[@value='Show All Individuals in This Class']
assertTitle Individuals in Class Hours
verifyTextPresent Daytime hours
verifyElementPresent link=Hours
verifyTextPresent Hours of day
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO