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

An admin can set whether users can view a list of courses they are not enrolled in

    XMLWordPrintable

    Details

    • Type: Functional Test
    • Status: Open
    • Priority: Minor
    • Affects Version/s: Master copy - DO NOT REPORT TEST RESULTS HERE
    • Fix Version/s: None
    • Labels:

      Description

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

      This test 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!

      1. Log in as admin and go to Site administration / Users / Permissions / Define roles.
      2. Edit the Authenticated user role and search for the capability moodle/category:viewcourselist then remove it by unticking the Allow box, then save changes.
      3. Edit the Guest role and search for the capability moodle/category:viewcourselist and then remove it by unticking the Allow box, then save changes.
      4. Click the 'Add a new role', use no role as archetype, name the role 'Course list viewer', tick Category as context type where the role may be assigned, search for the capability moodle/category:viewcourselist and allow it, then save changes.
      5. Go to the site home page and add the Courses block.
      6. Go to Site administration / Front page settings / Edit settings and enable all kinds of course listings on the site home page.
      7. Go to Site administration / Courses / Manage courses and categories and create some course categories and some courses.
      8. For some of these courses enable self enrolment and for others, enable guest access.
      9. For some of the categories created, assign the 'Course list viewer' role to a user via the 'Assign roles' option in the category cog menu.
      10. Log in as a user and verify that you are not able to view the list of courses in the Courses block or on the site home page.
      11. Verify that you can view the courses you are enrolled in.
      12. Log in as a guest and verify that you are not able to view the list of courses in the Courses block or on the site home page.
      13. Log in as the user with the 'Course list viewer' role and check the Courses block and the site home page.
      14. Verify that you can browse only the categories for which you have the 'Course list viewer' role.
      15. Verify that you can self-enrol in any course in these categories which allows self enrolment.
      16. Switch to Classic theme and make sure that only available/enrolled courses appear in the navigation block and navigation items expand properly when you navigate inside the course, inside the section and inside the activity.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: