This test requires a chat with saved past chat sessions.
- Prevent the student role from the capability "Read chat logs mod/chat:readlog" within the chat.
- Log in as a teacher, update a chat activity and set 'Everyone can view past sessions' to Yes.
- Log in as a student, access the chat and check that past chat sessions can be viewed via the 'View past chat sessions' link.
- Log in as a teacher, update the chat activity and set 'Everyone can view past sessions' to No.
- Check that past chat sessions can be viewed (as a teacher) via the 'View past chat sessions' link.
- Log in as a student, access the chat and check that there is no longer a 'View past chat sessions' link.
- Return the "Read chat logs mod/chat:readlog" capability to the student
- Check that past chat sessions can be viewed (as a student) via the 'View past chat sessions' link.
- will be (partly) resolved by
-
MDL-42289 Automate MDLQA-57 - Past chat sessions can be made available for everyone to view
- Reopened