-
Task
-
Resolution: Unresolved
-
Minor
-
None
-
4.2
The goal of this test is to verify users with 'moodle/site:deleteanymessage' can delete message for other users.
QA test to be automated: MDLQA-13511
QA testing instructions
- Log in as a teacher and go to a course.
- Create a group with group messaging set to Yes.
- Add the student to the group plus yourself as teacher.
- Click the messages icon to open the messaging drawer and try sending a few messages to the student privately and to the group.
- Try selecting any message then click the delete icon.
- 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.'
- Go ahead and delete the message.
- Check that the message is deleted.
- Using the other browser, log in as the student, click the messages icon to open the messaging drawer.
- 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.
- Try sending a few messages to the teacher privately and to the group.
- 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.
- Go to Site administration / Users / Permissions / Assign system roles and assign the teacher the role of 'Messages deleter'.
- In the browser logged in as a teacher, open the messaging drawer and select any message then click the delete icon.
- 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'.
- Tick the checkbox then click the delete button.
- Check that the message is deleted.
- Using the other browser, log in as the student and check that the message that the teacher deleted is deleted for you too.
- 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.
- In each case, as the student, check that messages are deleted for you too as expected.
- has a QA test
-
MDLQA-13511 A user with the capability to delete any message can delete messages for others
- Open
-
MDLQA-19272 CLONE - A user with the capability to delete any message can delete messages for others
- Open
-
MDLQA-17813 CLONE - A user with the capability to delete any message can delete messages for others
- Passed
-
MDLQA-18317 CLONE - A user with the capability to delete any message can delete messages for others
- Passed
-
MDLQA-18809 CLONE - A user with the capability to delete any message can delete messages for others
- Passed