publishingApprovalBySectionManager
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium publishingApprovalBySectionManager
open logout
type username jdoe
type password jdoe1
clickAndWait Submit
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Publish Document
verifyTextNotPresent Your dashboard is empty.
assignId link=test file to be publish 1 selectedElementId
selectWindow null
clickAndWait selectedElementId
verifyTextPresent This document is waiting for a publication approval
clickAndWait //input[@value="Approve"]
verifyTextPresent This document is published
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Your dashboard is empty.
selectWindow null
clickAndWait link=Log Out
type username bree
type password bree1
clickAndWait Submit
clickAndWait link=Sections
clickAndWait link=testSection1
clickAndWait link=testSection2
verifyElementPresent link=test file to be publish 1
clickAndWait link=Log Out
type username linnet
type password linnet1
clickAndWait Submit
clickAndWait link=Sections
clickAndWait link=testSection1
clickAndWait link=testSection2
clickAndWait link=test file to be publish 1
verifyTextPresent This document is published
clickAndWait link=Log Out