# Assignment is submitted after the deadline but before the grace period, the submission should be accepted.

## Description:

If assignment is submitted after the deadline but before the grace period, the submission should be accepted. The specified late penalty should be applied to the mark given by the teacher.


## 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. Enter yesterday's date and time in "Deadline" field.
11. Enter tomorrow's date and time in "End of grace period" field.
12. Enter a number in "Late submission penalty" field. 
13. Set the submission policy to "Must submit all at once". 
14. Click on the "Done" button. 
15. Click on the "Save" button. 
16. Clear the app storage
17. Login to the app using the student username and password.
18. Click on "Courses" tab. 
19. Click on the course name. 
20. Click on the assignment added by teacher. 
21. Enter the assignment text in the provided text field. 
22. Click on "Add file" button. 
23. Attach the required file. 
24. Click on the "Submit" button. 
25. Verify the submit status changed to "Submitted". 
26. Clear the app storage 
27. Login to the app using the teacher username and password.
28. Click on "Courses" tab. 
29. Click on the course name. 
30. Click on the assignment. 
31. Click on the "Submissions" tab. 
32. Click on the specific student's name.
33. Review the submitted text 
34. Open the submitted file. 
35. Click on "Mark" field. 
36. Enter the mark 
37. Click on the "Submit grade" button.
38. Verify that the mark is reduced according to the late penalty percentage.
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. Verify that the mark is reduced according to the late penalty percentage 