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

Add support for drag/drop of action events and implement dd for choice activity

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.4
    • 3.4
    • Calendar
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-59922-master-on-int
    • Hide

      Test setup

      1. Log in as admin
      2. Create a course
      3. Enrol a user as a student (s1)
      4. Enrol a user as a teacher (t1)
      5. Create a choice activity
        • Enable “allow responses from” under the “availability” section
        • Enable “allow responses until” under the “availability” section

      Test unable to drag and drop

      1. Log in as s1
      2. Navigate to the calendar
      3. Confirm that you see an event for the choice open day and close day
      4. Confirm that the events are coloured as a course event (see the Events Key block up the top right for colour reference)
      5. Confirm that you can not drag and drop either of the choice events

      Test valid drag and drop

      1. Log in as t1
      2. Navigate to the calendar
      3. Confirm that you can drag the choice opens event and drop it to any day before the close event (including to previous months)
      4. Open (in another tab, if you like) the choice activity and edit it’s settings
      5. Confirm that the “Allow responses from” value has been updated so that the date matches the date you dragged the event to (the time should remain unchanged).
      6. Repeat the above steps for the close event and confirm that the “Allow responses from” value is updated

      Test invalid drag and drop

      1. Log in as t1
      2. Navigate to the calendar
      3. Drag and drop the choice open event to some date after the choice close date event
      4. Confirm you receive an error message in a modal
      5. Confirm that the open event does not change dates
      6. Confirm that the “Allow responses from” value in the choice activity does no change
      7. Repeat the above steps for the choice close event however in this case try to drag and drop the close event to a date before the choice opens event.

      Test unsupported activity

      1. Log in as the teacher
      2. Go to the course you created
      3. Add an assignment activity (enable online text submission to make the next steps easier)
      4. Log in as s1
      5. Add a submission to the assignment
      6. Log in as t1
      7. Navigate to the calendar
      8. Confirm that you cannot drag and drop the assignment activity grading event (because the code for it hasn't yet been implemented).
      Show
      Test setup Log in as admin Create a course Enrol a user as a student (s1) Enrol a user as a teacher (t1) Create a choice activity Enable “allow responses from” under the “availability” section Enable “allow responses until” under the “availability” section Test unable to drag and drop Log in as s1 Navigate to the calendar Confirm that you see an event for the choice open day and close day Confirm that the events are coloured as a course event (see the Events Key block up the top right for colour reference) Confirm that you can not drag and drop either of the choice events Test valid drag and drop Log in as t1 Navigate to the calendar Confirm that you can drag the choice opens event and drop it to any day before the close event (including to previous months) Open (in another tab, if you like) the choice activity and edit it’s settings Confirm that the “Allow responses from” value has been updated so that the date matches the date you dragged the event to (the time should remain unchanged). Repeat the above steps for the close event and confirm that the “Allow responses from” value is updated Test invalid drag and drop Log in as t1 Navigate to the calendar Drag and drop the choice open event to some date after the choice close date event Confirm you receive an error message in a modal Confirm that the open event does not change dates Confirm that the “Allow responses from” value in the choice activity does no change Repeat the above steps for the choice close event however in this case try to drag and drop the close event to a date before the choice opens event. Test unsupported activity Log in as the teacher Go to the course you created Add an assignment activity (enable online text submission to make the next steps easier) Log in as s1 Add a submission to the assignment Log in as t1 Navigate to the calendar Confirm that you cannot drag and drop the assignment activity grading event (because the code for it hasn't yet been implemented).

      As a user who can edit an activity I should be able to drag and drop an activity calendar event to a new date in order to quickly change the date settings for the activity

            ryanwyllie Ryan Wyllie
            dobedobedoh Andrew Lyons
            Simey Lameze Simey Lameze
            Jun Pataleta Jun Pataleta
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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