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

Make 'Add a new topic/week' option client side on Topics and Weekly formats

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-71779-master
    • Hide

      Automatic testing using behat included:

      • course/format/topics/tests/behat/edit_delete_sections.feature
      • course/format/weeks/tests/behat/edit_delete_sections.feature

      Manual testing topics format

      1. Create a topic format course with at least 7 sections and add some activities
      2. Access the course as an editing teacher and turn editing on
        1. Check every topic has a "add section after" button
      3. Change the name of two consecutive sections
      4. Click on "add section after" button on the first renamed section
        1. Check a new section appears between both sections
      5. Delete the created section (should be empty of activities as it is new)
        1. Check the section is deleted without asking for any confirmation (because it has no activities)
      6. Rename a section that has no activities in it and delete
        1. Check a confirmation modal appears before deleting the topic (because it is renamed)
      7. Delete a section that contains some activity
        1. Check a confirmation modal appears before deleting the topic (because it has activities)
      8. Delete the first section
        1. Check the rest of the topics are renamed (if they don't have a custom name)

      Manual testing weeks format

      1. Create a week format course with at least 7 weeks and add some activities.
      2. Access the course as an editing teacher and turn editing on
        1. Check there is only one "add weeks" at the end of the course
      3. Click on the Add weeks button
        1. Check a new week is added without reloading the page
      4. Delete the created week (should be empty of activities as it is new)
        1. Check the section is deleted without asking for any confirmation (because it has no activities)
      5. Rename a week that has no activities in it and delete
        1. Check a confirmation modal appears before deleting the week (because it is renamed)
      6. Delete a week that contains some activity
        1. Check a confirmation modal appears before deleting the topic (because it has activities)
      7. Delete the first week of the course
        1. Check the rest of the weeks are renamed (if they don't have a custom name)

       

      Show
      Automatic testing using behat included: course/format/topics/tests/behat/edit_delete_sections.feature course/format/weeks/tests/behat/edit_delete_sections.feature Manual testing topics format Create a topic format course with at least 7 sections and add some activities Access the course as an editing teacher and turn editing on Check every topic has a "add section after" button Change the name of two consecutive sections Click on "add section after" button on the first renamed section Check a new section appears between both sections Delete the created section (should be empty of activities as it is new) Check the section is deleted without asking for any confirmation (because it has no activities) Rename a section that has no activities in it and delete Check a confirmation modal appears before deleting the topic (because it is renamed) Delete a section that contains some activity Check a confirmation modal appears before deleting the topic (because it has activities) Delete the first section Check the rest of the topics are renamed (if they don't have a custom name) Manual testing weeks format Create a week format course with at least 7 weeks and add some activities. Access the course as an editing teacher and turn editing on Check there is only one "add weeks" at the end of the course Click on the Add weeks button Check a new week is added without reloading the page Delete the created week (should be empty of activities as it is new) Check the section is deleted without asking for any confirmation (because it has no activities) Rename a week that has no activities in it and delete Check a confirmation modal appears before deleting the week (because it is renamed) Delete a week that contains some activity Check a confirmation modal appears before deleting the topic (because it has activities) Delete the first week of the course Check the rest of the weeks are renamed (if they don't have a custom name)  
    • Moppies Kanban

      As a teacher
      I want to be able to add a new sections without reloading the page
      So adding a new option is easier and quicker

       

      Acceptance criteria (applies for both Topic and Weekly formats):

      • Teachers could see a new 'Add topic below' option at the end of each topic for Topic format.
      • Teachers could see a new 'Add week below' option at the end of the course for Weekly format.
      • The new topic/week will be added below the current topic.
      • The changes will be done client-side. That means the page doesn't need to be reloaded to apply the changes.
      • The new section added will be shown also in the course index.

       

      As a teacher
      I want to be able to add a new section between 2 existing sections in a topics format
      So I don't need to move the sections created at the end of the course to the right position 

      Acceptance criteria: (only applies on Topic format)

      • Teachers could see a new 'Add topic below' option at the end of each topic.
      • The new topic will be added below the current topic.
      • The new section added will be shown also in the course index.

       

      https://www.figma.com/file/OfCvqK069Oz6Fvqq2xcZWI/Create-a-course?node-id=1422%3A2949

       

      (Waiting for the final design by UX)

       

            tusefomal Ferran Recio
            amaia Amaia Anabitarte
            Carlos Escobedo Carlos Escobedo
            Victor Déniz Falcón Victor Déniz Falcón
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 1 day, 3 hours, 37 minutes
                1w 1d 3h 37m

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