Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60062

Add support for drag/drop of quiz activity action events

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.4
    • 3.4
    • Calendar, Quiz
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-60062-master-2
    • Hide

      Quiz Setup

      1. Log in as admin
      2. Create a course
      3. Enrol a user as a teacher (t1)
      4. Enrol a user as a student (s1)
      5. 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

      1. Log in as t1
      2. Navigate to the calendar
      3. Start to drag the quiz opens event
      4. Confirm that each day after the close event is greyed out and invalid
      5. Confirm that if you drop the event on an invalid day that you receive an error message and the event is not changed
      6. Drag the open event again and drop it on the same day as the close event
      7. Confirm that the calendar is updated and the open event is now on the same day as the close event.
      8. In a separate tab, open up the settings for the quiz activity
      9. 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.
      10. Change the “Open the quiz” date back to today’s date (leaving the time set to 8am).
      11. Change the “Close the quiz” time to be 7:55am instead of 8am (leaving the date set to 3 days from now).
      12. Change back to the tab with the calendar open
      13. Refresh the page (you should see the open event moved back to today)
      14. Start dragging the open event again
      15. 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.
      16. In the tab with the quiz activity settings (after reloading the page) disable the close date
      17. In the tab with the calendar. Reload the page.
      18. Confirm that the open event can now be drag / dropped to any day without restriction (it’s only bound by the close date).
      19. 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

      1. Log in as s1
      2. Go to the calendar
      3. Confirm that you can’t drag/drop either of the quiz events.

      Quiz drag and drop overridden event as student with teacher role

      1. Log in as admin
      2. Go to the course
      3. Add the "teacher" role to s1 (they should still have the student role) (you can do this in the participants page)
      4. Go to the quiz activity
      5. Add an override for the close date for the user s1
      6. edit cog > user overrides
      7. Log in as s1
      8. Go to the calendar
      9. CONFIRM that you can't drag/drop the override event
      10. Log in as admin and remove the "teacher" role from s1 in the course

      Assignment manual check

      1. Log in as a teacher
      2. Create an assignment activity in a course
        • Make sure the cutoff date is set to some time in the future
      3. Go to the calendar
      4. Drag and drop the due date event
      5. CONFIRM that the event is bound by the "Allow submissions from" and the "Cut-off date"
      6. CONFIRM that dropping the event in a valid day range successfully updates the event in the calendar
      7. CONFIRM that dropping the event in a valid day range successfully updates the activity due date (can check the activity settings)

      Feedback manual check

      1. Log in as a teacher
      2. Create a feedback activity in a course
        • Make sure the allow answers to and from dates are set in the availability section
      3. Go to the calendar
      4. Drag and drop either (or both) the open or close event
      5. CONFIRM that the open date can't be dragged to after the close (and vice versa)
      6. CONFIRM that dropping the event on a valid date successfully updates the event in the calendar
      7. CONFIRM that dropping the event on a valid date successfully updates the corresponding activity property

      Choice manual check

      1. Log in as a teacher
      2. Create a choice activity in a course
        • Make sure the allow answers from and until dates are set in the availability section
      3. Go to the calendar
      4. Drag and drop either (or both) the open or close event
      5. CONFIRM that the open date can't be dragged to after the close (and vice versa)
      6. CONFIRM that dropping the event on a valid date successfully updates the event in the calendar
      7. CONFIRM that dropping the event on a valid date successfully updates the corresponding activity property
      Show
      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

      Allow the action events created by the quiz activity to be dragged and dropped in the calendar UI.

            ryanwyllie Ryan Wyllie
            ryanwyllie Ryan Wyllie
            Tim Hunt Tim Hunt
            Andrew Lyons Andrew Lyons
            Andrew Lyons Andrew Lyons
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.