Open Tatyana-Kravchenko opened 2 years ago
There are five cases sharing the same unexpected behavior (404 code and 'Unable to find course record(s)'):
1.Teacher tries to change a course created by another teacher https://github.com/viraxslot/online-school-app/issues/40;
Steps to reproduce Teacher created course (course id: {{courseIdForMaterials}}) POST {{host}}/api/v1/courses Request Body
Teacher added a material in this course POST {{host}}/api/v1/courses/{{courseIdForMaterials}}/materials
Id the created material was saved in environment {{MaterialIdTeacher}}
Admin tries to change the teacher's material PATCH {{host}}/api/v1/courses/{{CourseIdForChangingTeacher}} Request Body
Tests:
Actual behavior
Expected behavior