PublishDocumentBySectionReaderForSectionManagerApproval
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium PublishDocumentBySectionReaderForSectionManagerApproval
open logout
open
type username linnet
type password linnet1
clickAndWait Submit
clickAndWait link=Workspaces
clickAndWait link=testWorkspace1
clickAndWait link=testFolder1
clickAndWait link=test file to be publish 1
watchAjaxTab
click link=Publish
waitForAjaxTab 10000
watchA4jRequests
click //div[@id='publishTreeForm:publishTree:publishRecursiveAdaptor.0:publishTreeNode']/div/span
waitForA4jRequest 20000
watchA4jRequests
click //div[@id='publishTreeForm:publishTree:publishRecursiveAdaptor.0.publishRecursiveAdaptor.0:publishTreeNode']/div/span
waitForA4jRequest 20000
assertTextPresent Publish Here
watchA4jRequests
click id=publishTreeForm:publishTree:publishRecursiveAdaptor.0.publishRecursiveAdaptor.0.publishRecursiveAdaptor.0:publishCommandLink
waitForA4jRequest 20000
verifyElementNotPresent link=Unpublish
clickAndWait link=Sections
clickAndWait link=testSection1
verifyElementPresent link=test file to be publish 1
clickAndWait link=testSection2
verifyElementPresent link=test file to be publish 1
clickAndWait link=test file to be publish 1
verifyTextPresent This document is waiting for a publication approval
clickAndWait link=Log Out
type username bree
type password bree1
clickAndWait Submit
clickAndWait link=Sections
clickAndWait link=testSection1
clickAndWait link=testSection2
verifyTextPresent This folder contains no document
clickAndWait link=Log Out