Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 64... Línea 64...
64
    And I am on site homepage
64
    And I am on site homepage
65
    And I turn editing mode on
65
    And I turn editing mode on
66
    And I click on "Edit" "link" in the "region-main" "region"
66
    And I click on "Edit" "link" in the "region-main" "region"
67
    And I set the field "Section name" to "New section name"
67
    And I set the field "Section name" to "New section name"
68
    When I press "Save changes"
68
    When I press "Save changes"
69
    Then "[data-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
69
    Then "[data-bs-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
Línea 70... Línea 70...
70
 
70
 
71
  @javascript
71
  @javascript
72
  Scenario: Expand/collapse sections for Custom sections format.
72
  Scenario: Expand/collapse sections for Custom sections format.
73
    Given I am on the "Course 1" course page logged in as student1
73
    Given I am on the "Course 1" course page logged in as student1
74
    And "[data-toggle=collapse]" "css_element" should exist in the "region-main" "region"
74
    And "[data-bs-toggle=collapse]" "css_element" should exist in the "region-main" "region"
75
    And I should see "Assignment 1" in the "region-main" "region"
75
    And I should see "Assignment 1" in the "region-main" "region"
76
    And I should see "Assignment 2" in the "region-main" "region"
76
    And I should see "Assignment 2" in the "region-main" "region"
77
    And I should see "Book 2" in the "region-main" "region"
77
    And I should see "Book 2" in the "region-main" "region"
78
    And I should see "Book 3" in the "region-main" "region"
78
    And I should see "Book 3" in the "region-main" "region"
79
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
79
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
80
    And I should see "2013" in the "section-4" "core_availability > Section availability"
80
    And I should see "2013" in the "section-4" "core_availability > Section availability"
81
    And I should not see "Forum 4"
81
    And I should not see "Forum 4"
82
    And I should see "Not available" in the "#section-5" "css_element"
82
    And I should see "Not available" in the "#section-5" "css_element"
83
    And I should not see "Forum 5"
83
    And I should not see "Forum 5"
84
    When I click on "#collapssesection3" "css_element"
84
    When I click on "Collapse" "link" in the "Section 3" "section"
85
    And I should see "Assignment 1" in the "region-main" "region"
85
    And I should see "Assignment 1" in the "region-main" "region"
86
    And I should see "Assignment 2" in the "region-main" "region"
86
    And I should see "Assignment 2" in the "region-main" "region"
87
    And I should see "Book 2" in the "region-main" "region"
87
    And I should see "Book 2" in the "region-main" "region"
88
    And I should not see "Book 3" in the "region-main" "region"
88
    And I should not see "Book 3" in the "region-main" "region"
89
    And I click on "#collapssesection1" "css_element"
89
    And I click on "Collapse" "link" in the "Section 1" "section"
90
    And I click on "#collapssesection2" "css_element"
90
    And I click on "Collapse" "link" in the "Section 2" "section"
91
    And I click on "#collapssesection4" "css_element"
91
    And I click on "Collapse" "link" in the "Section 4" "section"
92
    And I click on "#collapssesection5" "css_element"
92
    And I click on "Collapse" "link" in the "Section 5" "section"
93
    Then I should not see "Assignment 1" in the "region-main" "region"
93
    Then I should not see "Assignment 1" in the "region-main" "region"
94
    And I should not see "Assignment 2" in the "region-main" "region"
94
    And I should not see "Assignment 2" in the "region-main" "region"
95
    And I should not see "Book 2" in the "region-main" "region"
95
    And I should not see "Book 2" in the "region-main" "region"
96
    And I should not see "Book 3" in the "region-main" "region"
96
    And I should not see "Book 3" in the "region-main" "region"
97
    And I should not see "Available until" in the "section-4" "core_availability > Section availability"
97
    And I should not see "Available until" in the "section-4" "core_availability > Section availability"
98
    And I click on "#collapssesection1" "css_element"
98
    And I click on "Expand" "link" in the "Section 1" "section"
99
    And I click on "#collapssesection2" "css_element"
99
    And I click on "Expand" "link" in the "Section 2" "section"
100
    And I click on "#collapssesection3" "css_element"
100
    And I click on "Expand" "link" in the "Section 3" "section"
101
    And I click on "#collapssesection4" "css_element"
101
    And I click on "Expand" "link" in the "Section 4" "section"
102
    And I click on "#collapssesection5" "css_element"
102
    And I click on "Expand" "link" in the "Section 5" "section"
103
    And I should see "Assignment 1" in the "region-main" "region"
103
    And I should see "Assignment 1" in the "region-main" "region"
104
    And I should see "Assignment 2" in the "region-main" "region"
104
    And I should see "Assignment 2" in the "region-main" "region"
105
    And I should see "Book 2" in the "region-main" "region"
105
    And I should see "Book 2" in the "region-main" "region"
106
    And I should see "Book 3" in the "region-main" "region"
106
    And I should see "Book 3" in the "region-main" "region"
Línea 116... Línea 116...
116
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
116
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
117
    And I should see "2013" in the "section-4" "core_availability > Section availability"
117
    And I should see "2013" in the "section-4" "core_availability > Section availability"
118
    And I should see "Forum 4"
118
    And I should see "Forum 4"
119
    And I should see "Hidden from students" in the "#section-5" "css_element"
119
    And I should see "Hidden from students" in the "#section-5" "css_element"
120
    And I should see "Forum 5"
120
    And I should see "Forum 5"
121
    When I click on "#collapssesection3" "css_element"
121
    And I click on "Collapse" "link" in the "15 May - 21 May" "section"
122
    And I should see "Assignment 1" in the "region-main" "region"
122
    And I should see "Assignment 1" in the "region-main" "region"
123
    And I should see "Assignment 2" in the "region-main" "region"
123
    And I should see "Assignment 2" in the "region-main" "region"
124
    And I should see "Book 2" in the "region-main" "region"
124
    And I should see "Book 2" in the "region-main" "region"
125
    And I should not see "Book 3" in the "region-main" "region"
125
    And I should not see "Book 3" in the "region-main" "region"
126
    And I click on "#collapssesection1" "css_element"
126
    And I click on "Collapse" "link" in the "1 May - 7 May" "section"
127
    And I click on "#collapssesection2" "css_element"
127
    And I click on "Collapse" "link" in the "8 May - 14 May" "section"
128
    And I click on "#collapssesection4" "css_element"
128
    And I click on "Collapse" "link" in the "22 May - 28 May" "section"
129
    And I click on "#collapssesection5" "css_element"
129
    And I click on "Collapse" "link" in the "29 May - 4 June" "section"
130
    Then I should not see "Assignment 1" in the "region-main" "region"
130
    Then I should not see "Assignment 1" in the "region-main" "region"
131
    And I should not see "Assignment 2" in the "region-main" "region"
131
    And I should not see "Assignment 2" in the "region-main" "region"
132
    And I should not see "Book 2" in the "region-main" "region"
132
    And I should not see "Book 2" in the "region-main" "region"
133
    And I should not see "Book 3" in the "region-main" "region"
133
    And I should not see "Book 3" in the "region-main" "region"
134
    And I should not see "Available until" in the "section-4" "core_availability > Section availability"
134
    And I should not see "Available until" in the "section-4" "core_availability > Section availability"
135
    And I should not see "Not available" in the "#section-5" "css_element"
135
    And I should not see "Not available" in the "#section-5" "css_element"
136
    And I click on "#collapssesection1" "css_element"
136
    And I click on "Expand" "link" in the "1 May - 7 May" "section"
137
    And I click on "#collapssesection2" "css_element"
137
    And I click on "Expand" "link" in the "8 May - 14 May" "section"
138
    And I click on "#collapssesection3" "css_element"
138
    And I click on "Expand" "link" in the "15 May - 21 May" "section"
139
    And I click on "#collapssesection4" "css_element"
139
    And I click on "Expand" "link" in the "22 May - 28 May" "section"
140
    And I click on "#collapssesection5" "css_element"
140
    And I click on "Expand" "link" in the "29 May - 4 June" "section"
141
    And I should see "Assignment 1" in the "region-main" "region"
141
    And I should see "Assignment 1" in the "region-main" "region"
142
    And I should see "Assignment 2" in the "region-main" "region"
142
    And I should see "Assignment 2" in the "region-main" "region"
143
    And I should see "Book 2" in the "region-main" "region"
143
    And I should see "Book 2" in the "region-main" "region"
144
    And I should see "Book 3" in the "region-main" "region"
144
    And I should see "Book 3" in the "region-main" "region"
145
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
145
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
Línea 154... Línea 154...
154
    When I navigate to "Settings" in current page administration
154
    When I navigate to "Settings" in current page administration
155
    And I expand all fieldsets
155
    And I expand all fieldsets
156
    And I set the following fields to these values:
156
    And I set the following fields to these values:
157
      | Course layout | Show one section per page |
157
      | Course layout | Show one section per page |
158
    And I press "Save and display"
158
    And I press "Save and display"
159
    And "[data-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
159
    And "[data-bs-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
160
    And I click on "Section 2" "link" in the "region-main" "region"
160
    And I click on "Section 2" "link" in the "region-main" "region"
161
    And I should see "Assignment 2" in the "region-main" "region"
161
    And I should see "Assignment 2" in the "region-main" "region"
162
    And "[data-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
162
    And "[data-bs-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
163
    Then "Section 1" "section" should not exist
163
    Then "Section 1" "section" should not exist
164
    And "Section 3" "section" should not exist
164
    And "Section 3" "section" should not exist
165
    And I am on "Course 1" course homepage with editing mode on
165
    And I am on "Course 1" course homepage with editing mode on
166
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
166
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
167
    And I should see "2013" in the "section-4" "core_availability > Section availability"
167
    And I should see "2013" in the "section-4" "core_availability > Section availability"
Línea 175... Línea 175...
175
    When I navigate to "Settings" in current page administration
175
    When I navigate to "Settings" in current page administration
176
    And I expand all fieldsets
176
    And I expand all fieldsets
177
    And I set the following fields to these values:
177
    And I set the following fields to these values:
178
      | Course layout | Show one section per page |
178
      | Course layout | Show one section per page |
179
    And I press "Save and display"
179
    And I press "Save and display"
180
    And "[data-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
180
    And "[data-bs-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
181
    And I click on "8 May - 14 May" "link" in the "region-main" "region"
181
    And I click on "8 May - 14 May" "link" in the "region-main" "region"
182
    And I should see "Assignment 2" in the "region-main" "region"
182
    And I should see "Assignment 2" in the "region-main" "region"
183
    And "[data-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
183
    And "[data-bs-toggle=collapse]" "css_element" should not exist in the "region-main" "region"
184
    Then "1 May - 7 May" "section" should not exist
184
    Then "1 May - 7 May" "section" should not exist
185
    And "15 May - 21 May" "section" should not exist
185
    And "15 May - 21 May" "section" should not exist
186
    And I am on the "Course 1" course page logged in as student1
186
    And I am on the "Course 1" course page logged in as student1
187
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
187
    And I should see "Available until" in the "section-4" "core_availability > Section availability"
188
    And I should see "2013" in the "section-4" "core_availability > Section availability"
188
    And I should see "2013" in the "section-4" "core_availability > Section availability"