Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 135... Línea 135...
135
    And I should see "Visible to everyone/Non-Participation" in the "Override group" "select"
135
    And I should see "Visible to everyone/Non-Participation" in the "Override group" "select"
136
    And I should see "Only visible to members" in the "Override group" "select"
136
    And I should see "Only visible to members" in the "Override group" "select"
137
    And I should see "Only visible to members/Non-Participation" in the "Override group" "select"
137
    And I should see "Only visible to members/Non-Participation" in the "Override group" "select"
138
    And I should see "Only see own membership" in the "Override group" "select"
138
    And I should see "Only see own membership" in the "Override group" "select"
139
    And I should not see "Not visible" in the "Override group" "select"
139
    And I should not see "Not visible" in the "Override group" "select"
-
 
140
 
-
 
141
  @javascript
-
 
142
  Scenario: Quiz activity group overrides are displayed on the timeline block
-
 
143
    Given the following "group members" exist:
-
 
144
      | user     | group |
-
 
145
      | student1 | G2    |
-
 
146
    And I am on the "Test quiz" "quiz activity editing" page logged in as teacher1
-
 
147
    And I set the following fields to these values:
-
 
148
      | timeopen[enabled]  | 1            |
-
 
149
      | timeclose[enabled] | 1            |
-
 
150
      | timeopen           | ##today##    |
-
 
151
      | timeclose          | ##tomorrow## |
-
 
152
    And I press "Save and display"
-
 
153
    When I log in as "student1"
-
 
154
    Then I should see "##tomorrow##%A, %d %B %Y##" in the "Timeline" "block"
-
 
155
    And the following "mod_quiz > group overrides" exist:
-
 
156
      | quiz      | group | timeopen     | timeclose          |
-
 
157
      | Test quiz | G1    | ##tomorrow## | ##tomorrow +1day## |
-
 
158
    And I reload the page
-
 
159
    And I should see "##tomorrow +1day##%A, %d %B %Y##" in the "Timeline" "block"
-
 
160
    And the following "mod_quiz > group overrides" exist:
-
 
161
      | quiz      | group | timeopen           | timeclose           |
-
 
162
      | Test quiz | G2    | ##tomorrow +1day## | ##tomorrow +3days## |
-
 
163
    And I reload the page
-
 
164
    And I should see "##tomorrow +3days##%A, %d %B %Y##" in the "Timeline" "block"
-
 
165
 
-
 
166
  @javascript
-
 
167
  Scenario: Quiz activity user override is displayed even if group override exists on the timeline block
-
 
168
    Given the following "group members" exist:
-
 
169
      | user     | group |
-
 
170
      | student1 | G2    |
-
 
171
    And I am on the "Test quiz" "quiz activity editing" page logged in as teacher1
-
 
172
    And I set the following fields to these values:
-
 
173
      | timeopen[enabled]  | 1            |
-
 
174
      | timeclose[enabled] | 1            |
-
 
175
      | timeopen           | ##today##    |
-
 
176
      | timeclose          | ##tomorrow## |
-
 
177
    And I press "Save and display"
-
 
178
    And the following "mod_quiz > group overrides" exist:
-
 
179
      | quiz      | group | timeopen           | timeclose           |
-
 
180
      | Test quiz | G1    | ##tomorrow##       | ##tomorrow +1day##  |
-
 
181
      | Test quiz | G2    | ##tomorrow +1day## | ##tomorrow +3days## |
-
 
182
    And I navigate to "Overrides" in current page administration
-
 
183
    And I press "Add user override"
-
 
184
    And I set the following fields to these values:
-
 
185
      | Override user | Sam 1 Student 1   |
-
 
186
      | timeopen      | ##tomorrow##      |
-
 
187
      | timeclose     | ##tomorrow noon## |
-
 
188
    And I press "Save"
-
 
189
    When I log in as "student1"
-
 
190
    Then I should see "##tomorrow noon##%A, %d %B %Y##" in the "Timeline" "block"
-
 
191
 
-
 
192
  @javascript
-
 
193
  Scenario: Quiz activity override are not visible on timeline block when student is unenrolled
-
 
194
    Given the following "group members" exist:
-
 
195
      | user     | group |
-
 
196
      | student1 | G2    |
-
 
197
    And the following "mod_quiz > group overrides" exist:
-
 
198
      | quiz      | group | timeopen           | timeclose           |
-
 
199
      | Test quiz | G2    | ##tomorrow +1day## | ##tomorrow +3days## |
-
 
200
    And I am on the "Test quiz" "quiz activity" page logged in as teacher1
-
 
201
    And I navigate to "Overrides" in current page administration
-
 
202
    And I press "Add user override"
-
 
203
    And I set the following fields to these values:
-
 
204
      | Override user | Sam 1 Student 1   |
-
 
205
      | timeopen      | ##tomorrow##      |
-
 
206
      | timeclose     | ##tomorrow noon## |
-
 
207
    And I am on "Course 1" course homepage
-
 
208
    And I navigate to course participants
-
 
209
    And I click on "Unenrol" "icon" in the "student1" "table_row"
-
 
210
    And I click on "Unenrol" "button" in the "Unenrol" "dialogue"
-
 
211
    When I log in as "student1"
-
 
212
    Then "Test quiz" "link" should not exist in the "Timeline" "block"
-
 
213
    And I should not see "##tomorrow noon##%A, %d %B %Y##" in the "Timeline" "block"