Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 110... Línea 110...
110
    Then "Add audience 'All users'" "link" should exist
110
    Then "Add audience 'All users'" "link" should exist
111
    # This audience type should be disabled because there are no cohorts available.
111
    # This audience type should be disabled because there are no cohorts available.
112
    And "Add audience 'Member of cohort'" "link" should not exist
112
    And "Add audience 'Member of cohort'" "link" should not exist
113
    And the "title" attribute of "//div[@data-region='sidebar-menu']/descendant::div[normalize-space(.)='Member of cohort']" "xpath_element" should contain "Not available"
113
    And the "title" attribute of "//div[@data-region='sidebar-menu']/descendant::div[normalize-space(.)='Member of cohort']" "xpath_element" should contain "Not available"
Línea -... Línea 114...
-
 
114
 
-
 
115
  Scenario: Configure and filter report audience with multiple types
-
 
116
    Given the following "core_reportbuilder > Audiences" exist:
-
 
117
      | report    | classname                                           | configdata |
-
 
118
      | My report | \core_reportbuilder\reportbuilder\audience\admins   |            |
-
 
119
      | My report | \core_reportbuilder\reportbuilder\audience\allusers |            |
-
 
120
    When I am on the "My report" "reportbuilder > Editor" page logged in as "admin"
-
 
121
    And I click on the "Access" dynamic tab
-
 
122
    Then the following should exist in the "Report access list" table:
-
 
123
      | -1-        |
-
 
124
      | Admin User |
-
 
125
      | User 1     |
-
 
126
      | User 2     |
-
 
127
      | User 3     |
-
 
128
    # Now let's filter them.
-
 
129
    And I click on "Filters" "button"
-
 
130
    And I set the field "Audience value" in the "Audience" "core_reportbuilder > Filter" to "Site administrators"
-
 
131
    And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element"
-
 
132
    And the following should exist in the "Report access list" table:
-
 
133
      | -1-        |
-
 
134
      | Admin User |
-
 
135
    And the following should not exist in the "Report access list" table:
-
 
136
      | -1-        |
-
 
137
      | User 1     |
-
 
138
      | User 2     |
-
 
139
      | User 3     |
114
 
140
 
115
  Scenario: Configure report audience as user who cannot use specific audience
141
  Scenario: Configure report audience as user who cannot use specific audience
116
    Given the following "users" exist:
142
    Given the following "users" exist:
117
      | username  | firstname | lastname |
143
      | username  | firstname | lastname |
118
      | manager1  | Manager   | 1        |
144
      | manager1  | Manager   | 1        |