# Assignment creation,submission and grading

## Description:

Teacher can create assignment (set to allow one submission per student as per default), student
can submit assignment (text and attachment), teacher can view submission and grade it. After
submitting their work, the submit button is no longer visible. Student will see their mark when
it is graded. Assignment can be edited or deleted from course.

## 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. Leave the title blank and click on Save
9. User gets error the assignment block title is mandatory
10. Enter the assignment title in the "Title" field. 
11. Enter the assignment description in the "Description" field. 
12. Set the submission policy to "Must submit all at once". 
13. Click on the "Done" button.
14. Click on the "Save" button.
15. Clear the app storage 
16. Login to the app using the student username and password.
17. Click on "Courses" tab. 
18. Click on the course name.
19. Click on the assignment added by teacher.
20. Enter the assignment text in the provided text field.
21. Click on "Add file" button. 
22. Attach the required file. 
23. Click on the "Submit" button.
24. Verify the submit status changed to "Submitted".
25. **Clear the app storage 
26. Login to the app using the teacher username and password.
27. Click on "Courses" tab. 
28. Click on the course name.
29. Click on the assignment.
30. Click on the "Submissions" tab.
31. Click on the specific student's name.. 
32. Review the submitted text
33. Open the submitted file.
34. Click on "Mark" field.
35. Enter the mark
36. Click on the "Submit grade" button.
37. Click on the "Gradebook" tab.
38. The teacher should able to see each student assignment grade there
39. Clear the app storage. 
40. Login to the app using the student username and password.
41. Click on "Courses" tab. 
42. Click on the course name. 
43. Click on the assignment. 
44. The student should see their graded assignment and the marks. 
45. Clear the app storage.
46. Login to the app using the teacher username and password.
47. Click on "Courses" tab. 
48. Click on the course name. 
49. Click on the "More options" icon next to assignment name.
50. Select the "Delete" option.
51. Click on "Save" button.
52. Verify the assignment is not visible.