rejectCommentOnTopicWithModeration
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium rejectCommentOnTopicWithModeration
open logout
open /nuxeo
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent bree
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Moderate the document
verifyTextPresent testTopicWithModeration
clickAndWait link=testTopicWithModeration
verifyTextPresent testTopicWithModerationComment
verifyTextPresent comment n°1 in testTopicWithModeration
verifyTextPresent Waiting for approval
verifyTextPresent Published
verifyTextPresent members add comments
verifyTextPresent second comment
verifyElementPresent link=Approve
verifyElementPresent link=Reject
verifyElementPresent link=Delete
clickAndWait link=Reject
verifyTextNotPresent Waiting for approval
verifyTextPresent Rejected
verifyElementNotPresent link=Approve
verifyElementNotPresent link=Reject
verifyElementPresent link=Delete
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testForum1/testTopicWithModeration@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent jsmith
verifyTextPresent testTopicWithModerationComment
verifyTextPresent comment n°1 in testTopicWithModeration
verifyTextPresent members add comments
verifyTextPresent second comment
verifyTextNotPresent Waiting for approval
verifyTextPresent Rejected
verifyTextPresent Published
verifyElementPresent link=Reply
verifyElementPresent link=Delete
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testForum1/testTopicWithModeration@view_documents
type username linnet
type password linnet1
clickAndWait Submit
verifyTextPresent linnet
verifyTextPresent testTopicWithModerationComment
verifyTextPresent comment n°1 in testTopicWithModeration
verifyTextNotPresent members add comments
verifyTextNotPresent second comment
verifyTextNotPresent Waiting for approval
verifyTextNotPresent Rejected
verifyTextPresent Published
verifyElementPresent link=Reply
verifyElementNotPresent link=Delete
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testForum1/testTopicWithModeration@view_documents
type username lbramard
type password lbramard1
clickAndWait Submit
verifyTextPresent lbramard
verifyTextPresent testTopicWithModerationComment
verifyTextPresent comment n°1 in testTopicWithModeration
verifyTextNotPresent members add comments
verifyTextNotPresent second comment
verifyTextNotPresent Waiting for approval
verifyTextNotPresent Rejected
verifyTextNotPresent Waiting for approval
verifyTextPresent Published
verifyElementNotPresent link=Reply
verifyElementNotPresent link=Delete
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testForum1/testTopicWithModeration@view_documents
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
verifyTextPresent testTopicWithModerationComment
verifyTextPresent comment n°1 in testTopicWithModeration
verifyTextPresent members add comments
verifyTextPresent second comment
verifyTextNotPresent Waiting for approval
verifyTextPresent Rejected
verifyTextNotPresent Waiting for approval
verifyTextPresent Published
verifyElementPresent link=Reply
verifyElementPresent link=Delete
clickAndWait link=Log out