Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-5249 QA tests converted to behat
  3. MDLQA-1813

Deletion of groups with and without group ID numbers without permission

    XMLWordPrintable

    Details

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

      Description

      Test Pre-requisites:

      Create Test Data

      1. As an admin, create a new course
      2. Navigate to Settings -> Course administration -> Users -> Enrolled users
      3. Enrol a teacher in the course
      4. Navigate to Settings -> Course administration -> Users -> Permissions
      5. Remove 'Teacher' from the permission 'moodle/course:changeidnumber'
      6. Navigate to Settings -> Course administration -> Users -> Groups
      7. Create 4 new groups with those corresponding values:

      You will need to click on the 'Show advanced' button to set the Group ID number.

      Group name Group ID number
      group-id-1 group-id-1
      group-id-2 group-id-2
      group-noid-1  
      group-noid-2  

      6. Back on the groups page, click on the tab 'Groupings'
      7. Create 4 new groupings

      Grouping name Grouping ID number
      grouping-id-1 grouping-id-1
      grouping-id-2 grouping-id-2
      grouping-noid-1  
      grouping-noid-2  

      Test Steps:

      1. Login as the teacher and navigate to Settings -> Course administration -> Users -> Groups
      2. Confirm that the button 'Delete selected group' is greyed when selecting 'group-id-2'
      3. Select 'group-noid-2', click 'Delete selected group', click yes on confirmation page. Confirm that the group was removed.
      4. Open the tab 'Groupings'
      5. Confirm that there is no icon to delete 'grouping-id-2'
      6. Click the delete icon of 'grouping-noid-2', click yes on confirmation page. Confirm that the group was removed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nobody Nobody
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: