Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-1 Moodle QA testing
  3. MDLQA-18430

Group support in communication providers exploratory testing

XMLWordPrintable

    • Icon: Functional Test Functional Test
    • Icon: Minor Minor
    • None
    • Moodle 4.4
    • Communication

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

      Setup / basic info

      1. The communication experimental feature and associated providers (Matrix and custom link) are enabled by default on https://qa.moodledemo.net/, so no site level admin configurations should be required to test them.
      2. Matrix is also enabled on the Matrix Demo 1 course on that site (that course also includes some further information about the Matrix integration on its homepage). The below steps assume you will test with that course, though you can experiment with enabling it yourself on other courses.
      3. You can access the Communication settings for a course's home page More dropdown menu.

      Custom link provider

      This provider allows you to set up a URL for any communication service on a course. No user/room management takes place, it simply makes a link available from the blue communication button at the bottom right of any page in the course (just above the "?" icon).

      Matrix

      This provider will create and manage the relevant room(s) within the Matrix messaging service for your course, as well as managing who is added/removed from any such room(s) and their per-room access/power level.

      Notes:

      • Matrix accounts/rooms are accessed via the Element web application, which for the rooms used by the QA site can be found at https://element.in.moodle.com/. Credentials for that site are the same as that user's Moodle QA site credentials (eg u: teacher / p: moodle).
      • Most actions (such as managing room membership, creation etc) are performed in the background by ad-hoc tasks. This means those tasks must complete before the action will be completed.

      Test Scenario

      1. As a teacher, navigate to the Matrix Demo 1 course.
      2. Set the group mode to Visible groups.
      3. Go to Participants > Groups and create two groups - call them "MDLQA-X Group A" and "MDLQA-X Group B", where X is the number of this QA test, eg: "MDLQA-18913 Group A".
      4. Go to More > Communication and check the Provider is set to 'Matrix'. If it is is, skip to the next step. If it is not:
        1. Set the provider to Matrix. You can leave the room name blank or as-is, it will populate with the course name when saved if left blank.
        2. Once saved, teachers will likely see a banner on the course homepage confirming their room is being prepared.
        3. Once reloading the page results in a "room is ready" banner, the background processes have completed and the relevant setup has been performed in Matrix. You will then see the communication icon/button at the bottom right of the course page.
      5. Click on the communication icon at the bottom right of the page.
      6. You will be redirected to the Matrix (Element) web client. You should now have 2 browser tabs open (one for Moodle and one for Matrix/Element).
      7. Log in using your current user's credentials (ie u: teacher p: moodle).
      8. CONFIRM two rooms have been created (one for Group A and one for Group B) and that the room names include the groups' names.
      9. Back in your Moodle tab, navigate back to the course's participants page (keep the Matrix tab open as well, you will return to it in later steps).
      10. Update the role of one student to become a teacher.
      11. Set another user as a manager.
      12. Add one student to Group A.
      13. Add a different student to Group B.
      14. Wait a few seconds for the background cron processes to run.
      15. Return to the Matrix tab.
      16. CONFIRM that you see the expected room memberships and power level updates:
        1. CONFIRM that both your current teacher user and the user you upgraded to a teacher role in Moodle have been added to both groups' rooms, and that their power level is Moderator (aka Custom 51).
        2. CONFIRM that the user you gave the manager role in Moodle has been added to both groups' rooms and their power level is Moderator (aka Custom 51).
        3. CONFIRM that the students in the course have only been added to the room for the group they are the member of, and their power level remains the Default.
      17. Go back to the course participants page in your Moodle tab.
      18. Find the user who you changed from student to teacher, and change their role back to student.
      19. Wait a few seconds for the background cron processes to run.
      20. Go back to the Matrix browser tab.
      21. CONFIRM that user's power level has been changed to Default and the user has been removed from both groups' rooms.
      22. Go back to the course participants page in your Moodle tab.
      23. Change one student's role to manager.
      24. Wait a few seconds for the background cron processes to run.
      25. Go back to the Matrix browser tab.
      26. CONFIRM that the user has been added to both groups' rooms, and their power level is Moderator (aka Custom 51).
      27. Go back to the course participants page in your Moodle tab.
      28. Enrol the site administrator user in the course as a student in the course.
      29. Wait a few seconds for the background cron processes to run.
      30. Go back to the Matrix browser tab.
      31. CONFIRM that the site admin has been added to both groups' rooms and their power level is set to Custom 90.
      32. Go back to the the course in the Moodle tab.
      33. Navigate to More > Communication.
      34. Change the communication provider from 'Matrix' to 'Custom link'.
      35. Leave the room name as-is (it has not functional purpose for custom link), and set the Custom link URL to https://moodle.org/mod/forum/view.php?id=56.
      36. Save the changes.
      37. Wait a few seconds for the background cron processes to run.
      38. Refresh the course page and click on the communication icon.
      39. CONFIRM a new tab opens which loads the QA testing forum.
      40. Go back to the Matrix browser tab.
      41. CONFIRM that you (the teacher) have been removed from both groups' rooms (if you have one open or click on them under Historical, you will see a message like "You were removed from <room name>  by Admin User. This indicates that all users have been removed from the room.
      42. Go back to the the course in the Moodle tab.
      43. Change the group mode to no group in course settings and save changes.
      44. Navigate to More > Communication.
      45. Change the communication provider from 'Custom link'  to 'Matrix'.
      46. Set the Room name if you wish - if you leave it blank the expected behaviour is that after you save, it will be automatically populated by the course name.
      47. Set the Room topic if you wish - this is used to describe what the room is for.
      48. Save the changes.
      49. Wait a few seconds for the background cron processes to run.
      50. Go back to the Matrix browser tab.
      51. CONFIRM a single course room has been created (or is now available, the room may have already existed for this course), with the room name set in step 46 (or the course name if you did not manually insert a course name).
      52. CONFIRM that you see the expected room membership and power levels:
        1. CONFIRM all users enrolled in the course are added to the course room in Matrix.
        2. CONFIRM that any teachers in the course have been given the Moderator power level in the room.
        3. CONFIRM that any managers in the course have been given the Moderator power level in the room.
        4. CONFIRM the site administrator who you enrolled in the course earlier has the power level of Custom 90 in the room.
        5. CONFIRM that all students in the course retain the Default power level.
      53. Go back to the the course participants page in the Moodle tab.
      54. Change the role of a user from teacher to student and a different student to the role of manager.
      55. Wait a few seconds for the background cron processes to run.
      56. Go back to the Matrix browser tab.
      57. CONFIRM that the user you changed from teacher to student had their power level changed to Default, and that the student you changed to manager's power level upgraded to Moderator.
      58. Go back to the the course in the Moodle tab and navigate to More > Communication.
      59. Change the communication provider from 'Matrix' to 'None'.
      60. Go back to the Matrix browser tab.
      61. CONFIRM that you (the teacher) have been removed from the course room (if you have one open or click on them under Historical, you will see a message like "You were removed from  <room name> by Admin User.

            Unassigned Unassigned
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.