TearDownTest
waitForElementPresent link=JCS Setup Test PageA
clickAndWait link=JCS Setup Test PageA
clickAndWait link=Articles
click _15_allRowIds
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected articles?
assertTextPresent Your request processed successfully.
clickAndWait link=Return to Full Page
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
assertElementNotPresent link=Articles
waitForElementPresent link=JCS Setup Test PageB
clickAndWait link=JCS Setup Test PageB
click link=Close
assertConfirmation Are you sure you want to remove this component?
assertTextNotPresent Select an existing article or add an article to be displayed in this portlet.
waitForElementPresent link=Journal Content Search Test Page
clickAndWait link=Journal Content Search Test Page
waitForElementPresent link=Configuration
clickAndWait link=Configuration
waitForElementPresent _86_type
select _86_type label=General
waitForElementPresent //input[@value='Save']
clickAndWait //input[@value='Save']
assertTextPresent You have successfully updated the setup.
waitForElementPresent link=Return to Full Page
clickAndWait link=Return to Full Page
waitForElementPresent //img[@alt='Remove']
click //img[@alt='Remove']
assertConfirmation Are you sure you want to remove this component?
assertElementNotPresent //input[@type='image']
waitForElementPresent //div[2]/ul/li[1]/a/span
clickAndWait //div[2]/ul/li[1]/a/span
clickAndWait link=Manage Pages
clickAndWait //li[2]/ul/li[3]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
assertTextPresent Your request processed successfully.
clickAndWait //li[2]/ul/li[3]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
assertTextPresent Your request processed successfully.
clickAndWait //li[2]/ul/li[3]/a/span
clickAndWait link=Page
clickAndWait //input[@value='Delete']
assertConfirmation Are you sure you want to delete the selected page?
assertTextPresent Your request processed successfully.
waitForElementPresent //div[2]/ul/li[1]/a/span
clickAndWait //div[2]/ul/li[1]/a/span
assertElementNotPresent link=Journal Content Search Test Page
assertElementNotPresent link=JCS Setup Test PageA
assertElementNotPresent link=JCS Setup Test PageB