PublishToLiveNowDLPageDocumentDocxDockTest
open /web/guest/home/
waitForElementPresent link=Control Panel Control Panel
clickAtAndWait link=Control Panel Control Panel
clickAtAndWait link=Communities Communities
type //input[@id='_134_name'] Community Name
clickAtAndWait //input[@value='Search'] Search
assertTextNotPresent Public Pages - Live (1)
assertElementNotPresent //td[1]/a Public Pages - Live (1)
assertElementNotPresent //td[2]/a Open
open /web/community-name-staging/
waitForVisible link=Document Library Test Page Document Library Test 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 //td[1]/a DL Document Title.docx
assertText //td[2]/a 9.6k
assertText //td[3]/a 0
assertText //td[4]/a No
clickAt link=Publish to Live Now Publish to Live Now
pause 5000
waitForElementPresent //input[@id='_88_PORTLET_DATACheckbox'] Data
assertChecked //input[@id='_88_PORTLET_DATACheckbox'] Data
assertNotChecked //input[@id='_88_rangeAll'] All
clickAt //input[@id='_88_rangeAll'] All
assertChecked //input[@id='_88_rangeAll'] All
waitForVisible //input[@value='Publish'] Publish
clickAndWait //input[@value='Publish'] Publish
assertConfirmation Are you sure you want to publish these pages?
open /web/guest/home/
waitForElementPresent link=Control Panel Control Panel
clickAtAndWait link=Control Panel Control Panel
clickAtAndWait link=Communities Communities
type //input[@id='_134_name'] Community Name
clickAtAndWait //input[@value='Search'] Search
assertText //td[1]/a[1] Public Pages - Live (1)
assertText //td[1]/a[2] Staging
assertText //td[2]/a Open