Enable “Open the quiz” (in the Timing section) and set the date to 8am today
Enable “Close the quiz” (in the Timing section) and set the date to 8am three days from today
Quiz drag and drop as teacher
Log in as t1
Navigate to the calendar
Start to drag the quiz opens event
Confirm that each day after the close event is greyed out and invalid
Confirm that if you drop the event on an invalid day that you receive an error message and the event is not changed
Drag the open event again and drop it on the same day as the close event
Confirm that the calendar is updated and the open event is now on the same day as the close event.
In a separate tab, open up the settings for the quiz activity
Confirm that the “Open the quiz” date has been changed to match the close date and the times remain the same (both open and close time should be 8am). It is valid, according to the mform validation, to have the quiz open and close at the same time.
Change the “Open the quiz” date back to today’s date (leaving the time set to 8am).
Change the “Close the quiz” time to be 7:55am instead of 8am (leaving the date set to 3 days from now).
Change back to the tab with the calendar open
Refresh the page (you should see the open event moved back to today)
Start dragging the open event again
Confirm that the day the quiz closes is now invalid. This is because drag / drop only changes the dates, not the times, so dragging the open date to the close day would result in it being changed to 8am that day which would now be after the close date which is set to 7:55am.
In the tab with the quiz activity settings (after reloading the page) disable the close date
In the tab with the calendar. Reload the page.
Confirm that the open event can now be drag / dropped to any day without restriction (it’s only bound by the close date).
Repeat this test with the close event. The same rules apply to it. The close event is bounded by the open event. It can only be set to the same time or later than the open event. Never earlier.
Quiz drag and drop as student
Log in as s1
Go to the calendar
Confirm that you can’t drag/drop either of the quiz events.
Quiz drag and drop overridden event as student with teacher role
Log in as admin
Go to the course
Add the "teacher" role to s1 (they should still have the student role) (you can do this in the participants page)
Go to the quiz activity
Add an override for the close date for the user s1
edit cog > user overrides
Log in as s1
Go to the calendar
CONFIRM that you can't drag/drop the override event
Log in as admin and remove the "teacher" role from s1 in the course
Assignment manual check
Log in as a teacher
Create an assignment activity in a course
Make sure the cutoff date is set to some time in the future
Go to the calendar
Drag and drop the due date event
CONFIRM that the event is bound by the "Allow submissions from" and the "Cut-off date"
CONFIRM that dropping the event in a valid day range successfully updates the event in the calendar
CONFIRM that dropping the event in a valid day range successfully updates the activity due date (can check the activity settings)
Feedback manual check
Log in as a teacher
Create a feedback activity in a course
Make sure the allow answers to and from dates are set in the availability section
Go to the calendar
Drag and drop either (or both) the open or close event
CONFIRM that the open date can't be dragged to after the close (and vice versa)
CONFIRM that dropping the event on a valid date successfully updates the event in the calendar
CONFIRM that dropping the event on a valid date successfully updates the corresponding activity property
Choice manual check
Log in as a teacher
Create a choice activity in a course
Make sure the allow answers from and until dates are set in the availability section
Go to the calendar
Drag and drop either (or both) the open or close event
CONFIRM that the open date can't be dragged to after the close (and vice versa)
CONFIRM that dropping the event on a valid date successfully updates the event in the calendar
CONFIRM that dropping the event on a valid date successfully updates the corresponding activity property
Quiz Setup
Log in as admin
Create a course
Enrol a user as a teacher (t1)
Enrol a user as a student (s1)
Create a quiz activity
Enable “Open the quiz” (in the Timing section) and set the date to 8am today
Enable “Close the quiz” (in the Timing section) and set the date to 8am three days from today
Quiz drag and drop as teacher
Log in as t1
Navigate to the calendar
Start to drag the quiz opens event
Confirm that each day after the close event is greyed out and invalid
Confirm that if you drop the event on an invalid day that you receive an error message and the event is not changed
Drag the open event again and drop it on the same day as the close event
Confirm that the calendar is updated and the open event is now on the same day as the close event.
In a separate tab, open up the settings for the quiz activity
Confirm that the “Open the quiz” date has been changed to match the close date and the times remain the same (both open and close time should be 8am). It is valid, according to the mform validation, to have the quiz open and close at the same time.
Change the “Open the quiz” date back to today’s date (leaving the time set to 8am).
Change the “Close the quiz” time to be 7:55am instead of 8am (leaving the date set to 3 days from now).
Change back to the tab with the calendar open
Refresh the page (you should see the open event moved back to today)
Start dragging the open event again
Confirm that the day the quiz closes is now invalid. This is because drag / drop only changes the dates, not the times, so dragging the open date to the close day would result in it being changed to 8am that day which would now be after the close date which is set to 7:55am.
In the tab with the quiz activity settings (after reloading the page) disable the close date
In the tab with the calendar. Reload the page.
Confirm that the open event can now be drag / dropped to any day without restriction (it’s only bound by the close date).
Repeat this test with the close event. The same rules apply to it. The close event is bounded by the open event. It can only be set to the same time or later than the open event. Never earlier.
Quiz drag and drop as student
Log in as s1
Go to the calendar
Confirm that you can’t drag/drop either of the quiz events.
Quiz drag and drop overridden event as student with teacher role
Log in as admin
Go to the course
Add the "teacher" role to s1 (they should still have the student role) (you can do this in the participants page)
Go to the quiz activity
Add an override for the close date for the user s1
edit cog > user overrides
Log in as s1
Go to the calendar
CONFIRM that you can't drag/drop the override event
Log in as admin and remove the "teacher" role from s1 in the course
Assignment manual check
Log in as a teacher
Create an assignment activity in a course
Make sure the cutoff date is set to some time in the future
Go to the calendar
Drag and drop the due date event
CONFIRM that the event is bound by the "Allow submissions from" and the "Cut-off date"
CONFIRM that dropping the event in a valid day range successfully updates the event in the calendar
CONFIRM that dropping the event in a valid day range successfully updates the activity due date (can check the activity settings)
Feedback manual check
Log in as a teacher
Create a feedback activity in a course
Make sure the allow answers to and from dates are set in the availability section
Go to the calendar
Drag and drop either (or both) the open or close event
CONFIRM that the open date can't be dragged to after the close (and vice versa)
CONFIRM that dropping the event on a valid date successfully updates the event in the calendar
CONFIRM that dropping the event on a valid date successfully updates the corresponding activity property
Choice manual check
Log in as a teacher
Create a choice activity in a course
Make sure the allow answers from and until dates are set in the availability section
Go to the calendar
Drag and drop either (or both) the open or close event
CONFIRM that the open date can't be dragged to after the close (and vice versa)
CONFIRM that dropping the event on a valid date successfully updates the event in the calendar
CONFIRM that dropping the event on a valid date successfully updates the corresponding activity property
Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze