Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-12911 Moodle 3.7 QA
  3. MDLQA-13512

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

    XMLWordPrintable

    Details

      Description

      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!

      This is an exploratory test of a new feature, so please feel free to try anything you like and not just the test steps!

      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.

        Attachments

        1. 1. Role Creation.png
          169 kB
          Gopal Sharma
        2. 2. Assign Teacher New Role.png
          65 kB
          Gopal Sharma
        3. 3. message deletion for everyone.png
          39 kB
          Gopal Sharma
        4. 4. Student view-before message deletion.png
          55 kB
          Gopal Sharma
        5. 5. Student view -after message deletion.png
          49 kB
          Gopal Sharma
        6. 6. Private message deletion.png
          42 kB
          Gopal Sharma
        7. 7. Student view- before private message deletion.png
          55 kB
          Gopal Sharma
        8. 8. Teacher view- after private message deletion.png
          50 kB
          Gopal Sharma
        9. 9. Student view- after private message deletion.png
          49 kB
          Gopal Sharma

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: