CopyFromLiveDeleteDLStagingLiveDocumentDocxMPTest
open /web/community-name/
waitForVisible link=Document Library Test Page Document Library Test Page
clickAtAndWait link=Document Library Test Page Document Library Test Page
assertElementPresent //body[@class='blue live-view controls-visible signed-in public-page dockbar-ready'] Yellow Border
assertElementNotPresent //body[@class='blue staging controls-visible signed-in public-page dockbar-ready'] Red Border
assertText //td[1]/a DL Document Title.docx
assertText //td[2]/a 9.6k
assertText //td[3]/a 0
assertText //td[4]/a No
clickAtAndWait link=View Staged Page View Staged Page
clickAtAndWait link=Document Library Test Page Document Library Test Page
assertElementPresent //body[@class='blue staging controls-visible signed-in public-page dockbar-ready'] Red Border
assertElementNotPresent //body[@class='blue live-view controls-visible signed-in public-page dockbar-ready'] Yellow Border
assertText //div[@class='portlet-msg-info'] There are no documents in this folder.
assertTextNotPresent DL Document Title.docx
clickAt //div[@id='dockbar'] Dockbar
waitForElementPresent //div/div[3]/div/ul/li[1]/a Page
assertText //div/div[3]/div/ul/li[1]/a Page
clickAtAndWait //div/div[3]/div/ul/li[1]/a Page
clickAt //input[@value='Copy from Live'] Copy from Live
waitForVisible //div[2]/div[1]/div/span Options
waitForText //div[2]/div[1]/div/span Options
assertText //div[2]/div[1]/div/span Options
pause 5000
store eval(selenium.isVisible('_88_PORTLET_DATA_20Checkbox')) dataDLVisible
gotoIf ${dataDLVisible} DataDLVisible
clickAt //div[2]/div[1]/a Plus
label DataDLVisible
waitForVisible //input[@id='_88_PORTLET_DATACheckbox'] Data
assertChecked //input[@id='_88_PORTLET_DATACheckbox'] Data
assertChecked //input[@id='_88_PORTLET_DATA_20Checkbox'] Document Library
assertNotChecked //input[@id='_88_rangeAll'] All
clickAt //input[@id='_88_rangeAll'] All
assertChecked //input[@id='_88_rangeAll'] All
clickAtAndWait //input[@value='Publish'] Publish
assertConfirmation Are you sure you want to publish these pages?