-
Functional Test
-
Minor
-
Moodle 3.7
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!
- 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.