# Group users can add assignment course comments and private comments

## Description:

Teacher can create assignment as per 4.1 by groups. When another group member logs in, the group member will see the same submission and comments.

## Step-by-Step Procedure:

1. Using http api endpoint created a class with students and teachers already enrolled and setup.
2. Login to the app using the teacher username and password.
3. Click on "Courses" tab.
4. Click on the course name.
5. Click on "Edit" button.
6. Click on "Add block" button
7. Click on "Assignment".
8. Enter the assignment title in the "Title" field.
9. Enter the assignment description in the "Description" field.
10. Click on "Group Submission" switch
11. Click on "Groups" field.
12. Click on "Add new groups".
13. Enter a group title in "Title field"
14. Enter 2 in "Number of groups" field.
15. Assign first 3 students to Group 1.
16. Assign last 3 students to Group 2.
17. Click on "Save" button to save group details.
18. Set the submission policy to "Must submit all at once". 
19. Click on the "Done" button. 
20. Click on the "Save" button.
21. Click on the assignment.
22. Enter a comment on "Add a class comment" field. 
23. Click on "Send" icon. 
24. Click on the assignment.
25. Click on the "Submission" tab
26. Click on group 1.
27. Enter a comment on "Add a private comment" field.
28. Click on "Send" icon.
29. Clear the app storage 
30. Login to the app using the student username and password in group 1.
31. Click on "Courses" tab. 
32. Click on the course name. 
33. Click on the assignment added by teacher.
34. Enter a comment on "Add a class comment" field. 
35. Click on "Send" icon.
36. Verify that student's and teacher's class comment is visible for the student in group 1. 
37. Enter a comment on "Add a private comment" field.
38. Click on "Send" icon.
39. Verify that student's and teacher's private comment is visible for the students in group 1
40. Login to the app using the student username and password in group 2.
41. Click on "Courses" tab. 
42. Click on the course name. 
43. Click on the assignment added by teacher. 
44. Verify that group 1-student's and teacher's class comment is visible for the student in group 2.
45. Verify that private comments are not visible for the students in group 2.