addCommentToBeRejected
open /nuxeo/logout
open /nuxeo/nxpath/default/default-domain/workspaces/testworskspace1/testforum1/testtopicwithmoderation@view_documents
type username jdoe
type password jdoe1
clickAndWait Submit
select //select[@class="langSelect"] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as jdoe
verifyTextPresent testTopicWithModerationComment
verifyTextPresent comment n°1 in testTopicWithModeration
verifyTextNotPresent Waiting for approval
verifyTextPresent Published
verifyElementPresent link=Reply
clickAndWait //input[@value="Add"]
type //table[@class="dataInput"]/tbody/tr//td[2]/input members add comments
type //table[@class="dataInput"]//textarea second comment
clickAndWait //div[@class="buttonsGadget"]/input
verifyTextPresent members add comments
verifyTextPresent second comment
verifyTextPresent Waiting for approval
verifyTextPresent Published
verifyElementPresent link=Delete
clickAndWait link=Log out
open /nuxeo/nxpath/default/default-domain/workspaces/testworskspace1/testforum1/testtopicwithmoderation@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
select //select[@class="langSelect"] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as jsmith
verifyTextPresent testTopicWithModerationComment
verifyTextPresent comment n°1 in testTopicWithModeration
verifyTextNotPresent members add comments
verifyTextNotPresent second comment
verifyTextNotPresent Waiting for approval
verifyTextPresent Published
clickAndWait link=Log out
open /nuxeo/nxpath/default/default-domain/workspaces/testworskspace1/testforum1/testtopicwithmoderation@view_documents
type username lbramard
type password lbramard1
clickAndWait Submit
select //select[@class="langSelect"] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as lbramard
verifyTextPresent testTopicWithModerationComment
verifyTextPresent comment n°1 in testTopicWithModeration
verifyTextNotPresent members add comments
verifyTextNotPresent second comment
verifyTextNotPresent Waiting for approval
verifyTextPresent Published
verifyElementNotPresent link=Reply
verifyElementNotPresent link=Delete
clickAndWait link=Log out