DeleteSubClassHours
deleteAllVisibleCookies
setTimeout 100000
comment Delete test sub-class Hours
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 Class hierarchy
clickAndWait link=Class hierarchy
assertTitle VIVO
comment Make sure sub-class Hours actually exists
verifyElementPresent link=vivo:Hours
comment Select to edit sub-class Hours
clickAndWait link=vivo:Hours
assertTitle Class Control Panel
clickAndWait //input[@value='Edit Class']
assertTitle Class Editing Form
comment Delete sub-class Hours
click _delete
assertConfirmation Are you SURE you want to delete this record? If in doubt, CANCEL.
waitForPageToLoad 10000
assertTitle VIVO
comment Verify sub-class Hours no longer exists
verifyElementNotPresent link=vivo:Hours
comment Logout
clickAndWait link=Home
clickAndWait link=Log out
assertTitle VIVO