Add/Delete Folder and Alias
open /caladmin/main/showMain.rdo
storeTextPresent Manage Events MANEVENTS
gotoIf ${MANEVENTS} LoggedIn
type name=j_username admin
type name=j_password bedework
clickAndWait name=j_security_check
label LoggedIn
clickAndWait link=System
clickAndWait link=Manage calendars & folders
storeTextPresent aliases ALIASES
gotoIf ${ALIASES} publicExpanded
clickAndWait css=img.bwPlusMinusIcon
label publicExpanded
storeTextPresent Arts ARTS
gotoIf ${ARTS} aliasesExpanded
click css=li.folder > ul > li.folder > a > img.bwPlusMinusIcon
label aliasesExpanded
clickAndWait css=li.folder > ul > li.folder > a[title="add a calendar or folder"] > img[alt="add a calendar or folder"]
type name=calendar.name ExtremeSports
type name=calendar.summary Extreme Sports
type name=calendar.description More than athletics
click //button[@type='button' and @type='button' and @type='button' and @onclick="toggleVisibility('calCategories','visible')"]
click //input[@name='catUid' and @value='ff808181-1fd7389e-011f-d7389f24-0000000e']
click //input[@name='typeSwitch' and @value='folder']
clickAndWait name=addCalendar
clickAndWait //table[@id='calendarTable']/tbody/tr/td/ul/li/ul/li/ul/li[8]/a[3]/img
type name=calendar.name FlyFishing
type name=calendar.summary Fly Fishing
type name=calendar.description Go wild!
click css=button[type=button]
click //input[@name='filterCatUid' and @value='ff808181-1fd7389e-011f-d7389f24-0000000e']
click //button[@type='button' and @type='button' and @type='button' and @onclick="toggleVisibility('calCategories','visible')"]
click //input[@name='catUid' and @value='ff808181-1fd7389e-011f-d7389f24-0000000e']
click //input[@name='typeSwitch' and @value='subscription']
type name=aliasUri bwcal:///public/cals/MainCal
clickAndWait name=addCalendar
clickAndWait link=Calendar Suite
clickAndWait link=Manage subscriptions
storeTextPresent Arts ARTS
gotoIf ${ARTS} MainCampusExpanded
clickAndWait css=img.bwPlusMinusIcon
label MainCampusExpanded
clickAndWait css=img[alt="add a subscription"]
type name=calendar.name ExtremeSports
type name=calendar.summary Extreme Sports
type name=calendar.description For the beast within.
click css=#bwPublicCalDisplay > button[type=button]
click id=bw-/public/aliases/ExtremeSports
clickAndWait name=addCalendar
verifyTextPresent Folder added.
clickAndWait link=Main Menu
clickAndWait css=img[alt="Add Event"]
verifyTextPresent Extreme Sports
clickAndWait name=cancelled
verifyTextPresent Action canceled.
clickAndWait link=Calendar Suite
clickAndWait link=Manage subscriptions
clickAndWait link=Extreme Sports
clickAndWait name=delete
clickAndWait name=delete
verifyTextPresent Deleted /user/agrp_calsuite-MainCampus/ExtremeSports
clickAndWait link=System
clickAndWait link=Manage calendars & folders
clickAndWait //table[@id='calendarTable']/tbody/tr/td/ul/li/ul/li/ul/li[8]/a/img
storeTextPresent Fly Fishing FLYFISHING
gotoIf ${FLYFISHING} extremeSportsExpanded
clickAndWait //table[@id='calendarTable']/tbody/tr/td/ul/li/ul/li/ul/li[8]/a/img
label extremeSportsExpanded
clickAndWait link=Fly Fishing
clickAndWait name=delete
clickAndWait name=delete
verifyTextPresent Deleted /public/aliases/ExtremeSports/FlyFishing
clickAndWait link=Extreme Sports
clickAndWait name=delete
clickAndWait name=delete
verifyTextPresent Deleted /public/aliases/ExtremeSports