Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16759 Moodle 4.1 QA
  3. MDLQA-17362

CLONE - Activity tags are deleted during course reset

XMLWordPrintable

      This test requires server access to run scheduled tasks and admin access

      Test 1
      1. Create a course.
      2. Create a book.
      3. Add a chapter to the book with a tag.
      4. Go to the course reset page.
      5. Do not check anything.
      6. Submit the form.
      7. Look at the chapter in the book and confirm the tag is still there.
      8. Go to the course reset page.
      9. Check to remove the book tags.
      10. Submit the form.
      11. Confirm you get a message saying that the book tags have been removed.
      12. Look at the chapter in the book and confirm the tag is no longer there.
      Test 2
      1. Create a forum.
      2. Add a discussion to the forum with a tag.
      3. Go to the course reset page.
      4. Do not check anything.
      5. Submit the form.
      6. Look at the discussion in the forum and confirm the tag is still there.
      7. Go to the course reset page.
      8. Check to delete all forum posts.
      9. Confirm the 'Remove all forum tags' checkbox becomes disabled.
      10. Submit the form.
      11. Confirm you get a message saying that the forum posts have been removed.
      12. Click on the forum and confirm all posts have been deleted.
      13. Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task
        tag_cron_task
      14. Look in your 'mdl_tag' table and confirm the tags were deleted as well.
      Test 3
      1. Create a forum.
      2. Add a discussion to the forum with a tag.
      3. Go to the course reset page.
      4. Check to remove all forum tags.
      5. Submit the form.
      6. Confirm you get a message saying that the forum tags have been removed.
      7. Click on the forum and confirm all the tags have been deleted.
      Test 4
      1. Create a glossary.
      2. Add an entry to the glossary with a tag.
      3. Go to the course reset page.
      4. Do not check anything.
      5. Submit the form.
      6. Look at the entry in the glossary and confirm the tag is still there.
      7. Go to the course reset page.
      8. Check to delete all glossary entries.
      9. Confirm the 'Remove all glossary tags' checkbox becomes disabled.
      10. Submit the form.
      11. Confirm you get a message saying that the glossary entries have been removed.
      12. Click on the glossary and confirm all entries have been deleted.
      13. Run php admin/tool/task/cli/schedule_task.php --execute=\\core\\task
        tag_cron_task
      14. Look in your 'mdl_tag' table and confirm the tags were deleted as well.
      Test 5
      1. Create a glossary.
      2. Add an entry to the glossary with a tag.
      3. Go to the course reset page.
      4. Check to remove all glossary tags.
      5. Submit the form.
      6. Confirm you get a message saying that the glossary tags have been removed.
      7. Click on the glossary and confirm all the tags have been deleted.

            aborrow Anthony Borrow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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