Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-19836 Moodle 5.0 QA
  3. MDLQA-20155

CLONE - A user with the capability to delete any message can delete messages for others

XMLWordPrintable

      This test requires a course with a teacher and student enrolled. The test is easiest to run using two browsers - one where you are logged in as the teacher and the other where you are logged in as the student.

      This test also requires admin access. If you would like to use the QA testing site for running it, please see the QA testing guide for details of how to request admin access. Begin just after the hourly reset to give yourself plenty of time to complete the test!

      1. Log in as a teacher and go to a course.
      2. Create a group with group messaging set to Yes.
      3. Add the student to the group plus yourself as teacher.
      4. Click the messages icon to open the messaging drawer and try sending a few messages to the student privately and to the group.
      5. Try selecting any message then click the delete icon.
      6. Check that you see the text 'Are you sure you would like to delete the selected messages? This will not delete them for other conversation participants.'
      7. Go ahead and delete the message.
      8. Check that the message is deleted.
      9. Using the other browser, log in as the student, click the messages icon to open the messaging drawer.
      10. Check that all private and group messages from the teacher are displayed, and that the message that the teacher deleted is still visible for the student.
      11. Try sending a few messages to the teacher privately and to the group.
      12. Log out then log in as admin, go to Site administration / Users / Permissions / Define roles and add a new role called 'Messages deleter'. Set the role archetype to none, select System as context type where the role may be assigned, allow the capability moodle/site:deleteanymessage then scroll to the bottom of the page and save changes.
      13. Go to Site administration / Users / Permissions / Assign system roles and assign the teacher the role of 'Messages deleter'.
      14. In the browser logged in as a teacher, open the messaging drawer and select any message then click the delete icon.
      15. Check that you see the text 'Are you sure you would like to delete the selected messages?' and a checkbox 'Delete for me and for everyone else'.
      16. Tick the checkbox then click the delete button.
      17. Check that the message is deleted.
      18. Using the other browser, log in as the student and check that the message that the teacher deleted is deleted for you too.
      19. Repeat steps 14 to 18, selecting and deleting several messages, selecting group or private messages, sometimes ticking the 'Delete for me and for everyone else' checkbox and sometimes not.
      20. In each case, as the student, check that messages are deleted for you too as expected.

        1. Screenshot 2025-03-25 at 11.37.54.png
          Screenshot 2025-03-25 at 11.37.54.png
          75 kB
        2. Screenshot 2025-03-25 at 11.38.01.png
          Screenshot 2025-03-25 at 11.38.01.png
          107 kB
        3. Screenshot 2025-03-25 at 11.38.13.png
          Screenshot 2025-03-25 at 11.38.13.png
          64 kB
        4. Screenshot 2025-03-25 at 11.38.33.png
          Screenshot 2025-03-25 at 11.38.33.png
          52 kB
        5. Screenshot 2025-03-25 at 11.38.41.png
          Screenshot 2025-03-25 at 11.38.41.png
          60 kB
        6. Screenshot 2025-03-25 at 11.38.46.png
          Screenshot 2025-03-25 at 11.38.46.png
          68 kB
        7. Screenshot 2025-03-25 at 11.39.18.png
          Screenshot 2025-03-25 at 11.39.18.png
          64 kB
        8. Screenshot 2025-03-25 at 11.39.55.png
          Screenshot 2025-03-25 at 11.39.55.png
          84 kB
        9. Screenshot 2025-03-25 at 11.41.07.png
          Screenshot 2025-03-25 at 11.41.07.png
          81 kB
        10. Screenshot 2025-03-25 at 11.41.51.png
          Screenshot 2025-03-25 at 11.41.51.png
          133 kB
        11. Screenshot 2025-03-25 at 11.42.10.png
          Screenshot 2025-03-25 at 11.42.10.png
          78 kB
        12. Screenshot 2025-03-25 at 11.42.26.png
          Screenshot 2025-03-25 at 11.42.26.png
          294 kB
        13. Screenshot 2025-03-25 at 11.42.58.png
          Screenshot 2025-03-25 at 11.42.58.png
          125 kB
        14. Screenshot 2025-03-25 at 11.43.16.png
          Screenshot 2025-03-25 at 11.43.16.png
          375 kB
        15. Screenshot 2025-03-25 at 11.47.18.png
          Screenshot 2025-03-25 at 11.47.18.png
          137 kB
        16. Screenshot 2025-03-25 at 11.48.14.png
          Screenshot 2025-03-25 at 11.48.14.png
          108 kB
        17. Screenshot 2025-03-25 at 11.48.20.png
          Screenshot 2025-03-25 at 11.48.20.png
          98 kB
        18. Screenshot 2025-03-25 at 11.49.09.png
          Screenshot 2025-03-25 at 11.49.09.png
          262 kB
        19. Screenshot 2025-03-25 at 11.49.25.png
          Screenshot 2025-03-25 at 11.49.25.png
          93 kB
        20. Screenshot 2025-03-25 at 11.49.37.png
          Screenshot 2025-03-25 at 11.49.37.png
          212 kB
        21. Screenshot 2025-03-25 at 11.50.54.png
          Screenshot 2025-03-25 at 11.50.54.png
          342 kB
        22. Screenshot 2025-03-25 at 11.51.45.png
          Screenshot 2025-03-25 at 11.51.45.png
          524 kB
        23. Screenshot 2025-03-25 at 11.52.03.png
          Screenshot 2025-03-25 at 11.52.03.png
          156 kB
        24. Screenshot 2025-03-25 at 11.52.09.png
          Screenshot 2025-03-25 at 11.52.09.png
          172 kB
        25. Screenshot 2025-03-25 at 11.52.44.png
          Screenshot 2025-03-25 at 11.52.44.png
          394 kB
        26. Screenshot 2025-03-25 at 11.53.47.png
          Screenshot 2025-03-25 at 11.53.47.png
          523 kB
        27. Screenshot 2025-03-25 at 11.53.57.png
          Screenshot 2025-03-25 at 11.53.57.png
          144 kB
        28. Screenshot 2025-03-25 at 11.54.14.png
          Screenshot 2025-03-25 at 11.54.14.png
          432 kB
        29. Screenshot 2025-03-25 at 11.54.42.png
          Screenshot 2025-03-25 at 11.54.42.png
          134 kB
        30. Screenshot 2025-03-25 at 11.54.56.png
          Screenshot 2025-03-25 at 11.54.56.png
          399 kB

            moien.abadi Moien Abadi
            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.