SA_TearDownTest
waitForElementPresent //li[4]/ul/li[1]/a[1]
clickAtAndWait //li[4]/ul/li[1]/a[1]
clickAtAndWait link=Control Panel
clickAtAndWait link=Communities
clickAt //strong/span
waitForElementPresent link=Manage Pages
clickAtAndWait link=Manage Pages
clickAtAndWait //form/ul[1]/li[3]/a
clickAtAndWait link=Staging
clickAndWait _134_stagingEnabled
assertConfirmation Are you sure you want to delete the staging public and private pages?
clickAtAndWait link=Back to Guest
clickAtAndWait link=Blogs Staging Test Page
store eval(selenium.isElementPresent('link=Delete')) BlogsPresent
gotoIf !${BlogsPresent} NoBlogsPresent
clickAndWait link=Delete
assertConfirmation Are you sure you want to delete this?
label NoBlogsPresent
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
clickAtAndWait link=Welcome
clickAtAndWait link=Manage Pages
clickAtAndWait //div/ul/li/ul/li[2]/a/span
clickAtAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
clickAtAndWait link=Welcome