| Línea 15... | 
            Línea 15... | 
          
          
            | 15 | 
                  | user      | course | role           |
  | 
            15 | 
                  | user      | course | role           |
  | 
          
          
            | 16 | 
                  | teacher1  | C1     | editingteacher |
  | 
            16 | 
                  | teacher1  | C1     | editingteacher |
  | 
          
          
            | Línea 17... | 
            Línea 17... | 
          
          
            | 17 | 
             
  | 
            17 | 
             
  | 
          
          
            | 18 | 
              Scenario: Default system capabilities modification
  | 
            18 | 
              Scenario: Default system capabilities modification
  | 
          
          
            | 19 | 
                Given I am on the "C1" "permissions" page logged in as "admin"
  | 
            19 | 
                Given I am on the "C1" "permissions" page logged in as "admin"
  | 
          
          
            | 20 | 
                When I click on "Allow" "icon" in the "mod/forum:addnews" "table_row"
  | 
            20 | 
                When I click on "Allow" "link" in the "mod/forum:addnews" "table_row"
  | 
          
          
            | 21 | 
                And I press "Student"
  | 
            21 | 
                And I press "Student"
  | 
          
          
            | 22 | 
                Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should contain "Student"
  | 
            22 | 
                Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should contain "Student"
  | 
          
          
            | 23 | 
                When I reload the page
  | 
            23 | 
                When I reload the page
  | 
          
          
            | 24 | 
                And I click on "Delete Student role" "link" in the "mod/forum:addnews" "table_row"
  | 
            24 | 
                And I click on "Delete Student role" "link" in the "mod/forum:addnews" "table_row"
  | 
          
          
            | 25 | 
                And I click on "Remove" "button" in the "Confirm role change" "dialogue"
  | 
            25 | 
                And I click on "Remove" "button" in the "Confirm role change" "dialogue"
  | 
          
          
            | 26 | 
                Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should not contain "Student"
  | 
            26 | 
                Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should not contain "Student"
  | 
          
          
            | 27 | 
                When I reload the page
  | 
            27 | 
                When I reload the page
  | 
          
          
            | 28 | 
                And I click on "Prohibit" "icon" in the "mod/forum:addnews" "table_row"
  | 
            28 | 
                And I click on "Prohibit" "link" in the "mod/forum:addnews" "table_row"
  | 
          
          
            | 29 | 
                And I press "Student"
  | 
            29 | 
                And I press "Student"
  | 
          
          
            | Línea 30... | 
            Línea 30... | 
          
          
            | 30 | 
                Then "Add announcementsmod/forum:addnews" row "Prohibited" column of "permissions" table should contain "Student"
  | 
            30 | 
                Then "Add announcementsmod/forum:addnews" row "Prohibited" column of "permissions" table should contain "Student"
  | 
          
          
            | 31 | 
             
  | 
            31 | 
             
  | 
          
          
            | 32 | 
              Scenario: Module capabilities overrides
  | 
            32 | 
              Scenario: Module capabilities overrides
  | 
          
          
            | 33 | 
                Given the following "activity" exists:
  | 
            33 | 
                Given the following "activity" exists:
  | 
          
          
            | 34 | 
                  | course   | C1      |
  | 
            34 | 
                  | course   | C1      |
  | 
          
          
            | 35 | 
                  | activity | forum   |
  | 
            35 | 
                  | activity | forum   |
  | 
          
          
            | 36 | 
                  | name     | Forum 1 |
  | 
            36 | 
                  | name     | Forum 1 |
  | 
          
          
            | 37 | 
                And I am on the "Forum 1" "forum activity permissions" page logged in as admin
  | 
            37 | 
                And I am on the "Forum 1" "forum activity permissions" page logged in as admin
  | 
          
          
            | 38 | 
                When I click on "Allow" "icon" in the "mod/forum:addnews" "table_row"
  | 
            38 | 
                When I click on "Allow" "link" in the "mod/forum:addnews" "table_row"
  | 
          
          
            | 39 | 
                And I press "Student"
  | 
            39 | 
                And I press "Student"
  | 
          
          
            | 40 | 
                Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should contain "Student"
  | 
            40 | 
                Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should contain "Student"
  | 
          
          
            | 41 | 
                When I reload the page
  | 
            41 | 
                When I reload the page
  | 
          
          
            | 42 | 
                And I click on "Delete Student role" "link" in the "mod/forum:addnews" "table_row"
  | 
            42 | 
                And I click on "Delete Student role" "link" in the "mod/forum:addnews" "table_row"
  | 
          
          
            | 43 | 
                And I click on "Remove" "button" in the "Confirm role change" "dialogue"
  | 
            43 | 
                And I click on "Remove" "button" in the "Confirm role change" "dialogue"
  | 
          
          
            | 44 | 
                Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should not contain "Student"
  | 
            44 | 
                Then "Add announcementsmod/forum:addnews" row "Roles with permission" column of "permissions" table should not contain "Student"
  | 
          
          
            | 45 | 
                When I reload the page
  | 
            45 | 
                When I reload the page
  | 
          
          
            | 46 | 
                And I click on "Prohibit" "icon" in the "mod/forum:addnews" "table_row"
  | 
            46 | 
                And I click on "Prohibit" "link" in the "mod/forum:addnews" "table_row"
  | 
          
          
            | Línea 47... | 
            Línea 47... | 
          
          
            | 47 | 
                And I press "Student"
  | 
            47 | 
                And I press "Student"
  | 
          
          
            | 48 | 
                Then "Add announcementsmod/forum:addnews" row "Prohibited" column of "permissions" table should contain "Student"
  | 
            48 | 
                Then "Add announcementsmod/forum:addnews" row "Prohibited" column of "permissions" table should contain "Student"
  |