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

Dropping an activity on the "add an activity or resource" button should duplicate the activity in the specific sections

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 4.0
    • Course
    • MOODLE_400_STABLE
    • MDL-73442-master
    • Hide

      PHPunit provided for state actions.

      Behat tests for the duplicate tool are compatible with the existing ones.

      Drag and drop manual test

      1. Create a topic format course with at least two sections
      2. Create an activity in topic 1
      3. Drag the activity over the "Add an activity or resource" in section 0
        1. Check the text of the add activity button change to "Duplicate here"
        2. Check the button has now a darker dotted border
      4. Drag the activity out of the "Add an activity or resource"
        1. Check the add activity button returns to the default one
        2. Check the border color and width return to normal
      5. Drop the activity over the "Add an activity or resource" in section 0
        1. Check the fill section 0 is locked (with a spinner and dimmed)
      6. When the duplication is done
        1. Check the copy of the activity is created in section 0
      7. Repeat the same text but drag the activity from the course index instead of from the content.
      Show
      PHPunit provided for state actions. Behat tests for the duplicate tool are compatible with the existing ones. Drag and drop manual test Create a topic format course with at least two sections Create an activity in topic 1 Drag the activity over the "Add an activity or resource" in section 0 Check the text of the add activity button change to "Duplicate here" Check the button has now a darker dotted border Drag the activity out of the "Add an activity or resource" Check the add activity button returns to the default one Check the border color and width return to normal Drop the activity over the "Add an activity or resource" in section 0 Check the fill section 0 is locked (with a spinner and dimmed) When the duplication is done Check the copy of the activity is created in section 0 Repeat the same text but drag the activity from the course index instead of from the content.

      During the user testing, some users complain that the new "add an activity or resource" button looks like dropzones but it is not.

      Converting the button into a dropzone is easy to implement and it should be used to duplicate the activity to a specific section.

        1. MDL-72799_C_026.png
          17 kB
          Ferran Recio
        2. Solid .png
          53 kB
          Barbara Ramiro
        3. Screenshot 2022-01-21 at 10.13.10.png
          115 kB
          Rafael Lechugo
        4. Screenshot 2022-01-21 at 10.13.21.png
          68 kB
          Rafael Lechugo
        5. Screenshot 2022-01-21 at 10.13.28.png
          150 kB
          Rafael Lechugo
        6. Screenshot 2022-01-21 at 10.13.41.png
          151 kB
          Rafael Lechugo
        7. Screenshot 2022-01-21 at 10.15.25.png
          17 kB
          Rafael Lechugo

            tusefomal Ferran Recio
            tusefomal Ferran Recio
            Amaia Anabitarte Amaia Anabitarte
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 31 minutes
                3d 31m

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