Create a new role called "Feedback viewer" that has "Student" as the archetype.
It should be assignable at the course context.
It should have the following capability set to prohibit: "mod/assign:submit".
It should have the following capability set to Allow: "mod/assign:viewgrades".
Create a new course and enrol 2 students and 1 "Feedback viewer" in the course.
Create 3 new assignments in the course with all submission and feedback types enabled.
The first assignment should have
blind marking => disabled
students submit in groups => disabled
marking workflow => disabled
marker allocation => disabled
The second assignment should have
blind marking => enabled
students submit in groups => disabled
marking workflow => disabled
marker allocation => disabled
The third assignment should have
blind marking => disabled
students submit in groups => enabled
marking workflow => enabled
marker allocation => enabled
Login as student 1 and submit to each of the 3 assignments (including a file for each).
Login as a teacher and give a grade, feedback text and a feedback file to each of the submissions. For the last assignment, set "Apply grades and feedback to entire group" to yes.
As student 1, go through each assignment and verify you can see the submission text and download and view the submission file. Verify you can also see the feedback and feedback file for each submission.
As the other student, go through each assignment and verify you cannot see the submission text or download and view the submission file for the first 2 assignments. Verify you cannot see the feedback or feedback file for the first 2 assignments and that you can see the submission and feedback for the last one.
As the "feedback viewer" go to the "View all submissions" page for each assignment. Verify you can see the submission text, download and view the submission file, see the feedback text and download and view the feedback file for the student 1. For the last assignment you should be able to do this for both students.