TearDownTest
waitForElementPresent link=Announcements Test Page
clickAndWait link=Announcements Test Page
clickAndWait link=Manage Entries
selectAndWait _84_distributionScope label=General
store eval(selenium.isElementPresent('//strong/span')) NormalPriorityAvailable
gotoIf !${NormalPriorityAvailable} No Normal Priority
click //strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label No Normal Priority
store eval(selenium.isElementPresent('//strong/span')) ImportantPriorityAvailable
gotoIf !${ImportantPriorityAvailable} No Important Priority
click //strong/span
waitForElementPresent //body/div[2]/ul/li[2]/a
clickAndWait //body/div[2]/ul/li[2]/a
assertConfirmation Are you sure you want to delete this?
label No Important Priority
waitForElementPresent link=Announcements Test Page
clickAndWait link=Announcements Test Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
clickAndWait //div[2]/ul/li[1]/a/span
clickAndWait link=Manage Pages
clickAndWait //li/ul/li[3]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAndWait //div[2]/ul/li[1]/a/span