diff --git a/e2e-test/java/org/alfresco/rest/GetCommentsTest.java b/e2e-test/java/org/alfresco/rest/GetCommentsTest.java index d7083a61d..8e9aefbe9 100644 --- a/e2e-test/java/org/alfresco/rest/GetCommentsTest.java +++ b/e2e-test/java/org/alfresco/rest/GetCommentsTest.java @@ -71,4 +71,13 @@ public class GetCommentsTest extends RestTest commentsAPI.getNodeComments(document.getNodeRef()); commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString()); } + + @TestRail(section={"rest-api", "comments"}, executionType= ExecutionType.SANITY, + description= "Verify Collaborator user gets comments created by admin user with Rest API and status code is 200") + public void collaboratorIsAbleToRetrieveComments() throws JsonToModelConversionException, Exception + { + restClient.authenticateUser(usersWithRoles.get(UserRole.SiteCollaborator)); + commentsAPI.getNodeComments(document.getNodeRef()); + commentsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString()); + } }