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

Behat to confirm that activity tags are deleted during course reset (Automate MDLQA-16748)

XMLWordPrintable

    • 1

      QA test to be automated: MDLQA-16748

      Testing instructions

      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/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/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.

            andelacruz Angelia Dela Cruz
            andelacruz Angelia Dela Cruz
            Stevani Andolo Stevani Andolo
            Simey Lameze Simey Lameze
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 2 hours, 33 minutes
                2d 2h 33m

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