diff --git a/e2e-test/java/org/alfresco/rest/PostCommentsTest.java b/e2e-test/java/org/alfresco/rest/PostCommentsTest.java index d4cb16cee..bcd4cdfda 100644 --- a/e2e-test/java/org/alfresco/rest/PostCommentsTest.java +++ b/e2e-test/java/org/alfresco/rest/PostCommentsTest.java @@ -68,5 +68,14 @@ public class PostCommentsTest extends RestTest commentsAPI.addComment(document.getNodeRef(), "This is a new comment added by user with role" + UserRole.SiteContributor); commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.CREATED.toString()); } + + @TestRail(section={"rest-api", "comments"}, executionType= ExecutionType.SANITY, + description= "Verify Collaborator user adds comments with Rest API and status code is 201") + public void collaboratorIsAbleToAddComment() throws JsonToModelConversionException, Exception + { + restClient.authenticateUser(usersWithRoles.get(UserRole.SiteCollaborator)); + commentsAPI.addComment(document.getNodeRef(), "This is a new comment added by user with role: " + UserRole.SiteCollaborator); + commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.CREATED.toString()); + } }