Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 185... Línea 185...
185
    And I should see "Section 2" in the "courseindex-content" "region"
185
    And I should see "Section 2" in the "courseindex-content" "region"
186
    And I should see "Activity sample 2" in the "courseindex-content" "region"
186
    And I should see "Activity sample 2" in the "courseindex-content" "region"
187
    And I should see "Section 3" in the "courseindex-content" "region"
187
    And I should see "Section 3" in the "courseindex-content" "region"
188
    And I should see "Activity sample 3" in the "courseindex-content" "region"
188
    And I should see "Activity sample 3" in the "courseindex-content" "region"
Línea 189... Línea 189...
189
 
189
 
190
  @javascript
190
  @javascript @accessibility
191
  Scenario: Course index toggling all sections
191
  Scenario: Course index toggling all sections
192
    When I am on the "Course 1" course page logged in as teacher1
192
    When I am on the "Course 1" course page logged in as teacher1
193
    # Sections should be opened by default.
193
    # Sections should be opened by default.
194
    Then I should see "Section 1" in the "courseindex-content" "region"
194
    Then I should see "Section 1" in the "courseindex-content" "region"
Línea 197... Línea 197...
197
    And I should see "Activity sample 2" in the "courseindex-content" "region"
197
    And I should see "Activity sample 2" in the "courseindex-content" "region"
198
    And I should see "Section 3" in the "courseindex-content" "region"
198
    And I should see "Section 3" in the "courseindex-content" "region"
199
    And I should see "Activity sample 3" in the "courseindex-content" "region"
199
    And I should see "Activity sample 3" in the "courseindex-content" "region"
200
    # Collapse all sections
200
    # Collapse all sections
201
    And I click on "Course index options" "button" in the "#courseindexdrawercontrols" "css_element"
201
    And I click on "Course index options" "button" in the "#courseindexdrawercontrols" "css_element"
-
 
202
    And the page should meet accessibility standards
202
    And I click on "Collapse all" "link" in the "#courseindexdrawercontrols" "css_element"
203
    And I click on "Collapse all" "link" in the "#courseindexdrawercontrols" "css_element"
203
    And I should see "Section 1" in the "courseindex-content" "region"
204
    And I should see "Section 1" in the "courseindex-content" "region"
204
    And I should not see "Activity sample 1" in the "courseindex-content" "region"
205
    And I should not see "Activity sample 1" in the "courseindex-content" "region"
205
    And I should see "Section 2" in the "courseindex-content" "region"
206
    And I should see "Section 2" in the "courseindex-content" "region"
206
    And I should not see "Activity sample 2" in the "courseindex-content" "region"
207
    And I should not see "Activity sample 2" in the "courseindex-content" "region"
Línea 379... Línea 380...
379
  Scenario: Change the section name inline in section page
380
  Scenario: Change the section name inline in section page
380
    When I am on the "Course 1 > Section 2" "course > section" page logged in as "teacher1"
381
    When I am on the "Course 1 > Section 2" "course > section" page logged in as "teacher1"
381
    And I turn editing mode on
382
    And I turn editing mode on
382
    When I set the field "Edit section name" in the "page-header" "region" to "Custom section name"
383
    When I set the field "Edit section name" in the "page-header" "region" to "Custom section name"
383
    Then I should see "Custom section name" in the "courseindex-content" "region"
384
    Then I should see "Custom section name" in the "courseindex-content" "region"
-
 
385
 
-
 
386
  @javascript
-
 
387
  Scenario: We cannot add a section when the number of section reaches maxsections but as soon as we reach under the limit we can add a section again.
-
 
388
    Given the following config values are set as admin:
-
 
389
      | maxsections | 4 | moodlecourse|
-
 
390
    And I log in as "teacher1"
-
 
391
    And I am on "Course 1" course homepage with editing mode on
-
 
392
    Then I should see "Section 1" in the "courseindex-content" "region"
-
 
393
    And ".disabled" "css_element" should exist in the "[data-action='addSection']" "css_element"
-
 
394
    And I should see "You have reached the maximum number of sections allowed for a course."
-
 
395
    And I delete section "4"
-
 
396
    And I click on "Delete" "button" in the ".modal" "css_element"
-
 
397
    And ".disabled" "css_element" should not exist in the "[data-action='addSection']" "css_element"
-
 
398
    And I should not see "You have reached the maximum number of sections allowed for a course."