Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 68... Línea 68...
68
    # Student1 checks the timeline again
68
    # Student1 checks the timeline again
69
    And I am on the "Homepage" page logged in as student1
69
    And I am on the "Homepage" page logged in as student1
70
    And I should not see "Test assignment name" in the "Timeline" "block"
70
    And I should not see "Test assignment name" in the "Timeline" "block"
Línea 71... Línea 71...
71
 
71
 
-
 
72
  @javascript
-
 
73
  Scenario: Confirm that the group switching option is available only when the group settings are correctly configured
-
 
74
    Given the following "activity" exists:
-
 
75
      | activity | assign          |
-
 
76
      | course   | C1              |
-
 
77
      | name     | Test assignment |
-
 
78
    And I am on the "Test assignment" "assign activity editing" page logged in as teacher1
-
 
79
    # The assignment does not have a specified group mode.
-
 
80
    When I set the following fields to these values:
-
 
81
      | Group mode | No groups |
-
 
82
    And I press "Save and display"
-
 
83
    And I navigate to "Submissions" in current page administration
-
 
84
    Then ".groupsearchwidget" "css_element" should not exist
-
 
85
    # The course has a specified group mode, but not enforced on modules.
-
 
86
    And I am on the "C1" "course editing" page
-
 
87
    And I set the following fields to these values:
-
 
88
      | Group mode       | Separate groups |
-
 
89
      | Force group mode | No              |
-
 
90
    And I press "Save and display"
-
 
91
    And I am on the "Test assignment" Activity page
-
 
92
    And I navigate to "Submissions" in current page administration
-
 
93
    And ".groupsearchwidget" "css_element" should not exist
-
 
94
    # The assignment has a specified group mode.
-
 
95
    And I am on the "Test assignment" "assign activity editing" page
-
 
96
    And I set the following fields to these values:
-
 
97
      | Group mode | Visible groups |
-
 
98
    And I press "Save and display"
-
 
99
    And I navigate to "Submissions" in current page administration
-
 
100
    And ".groupsearchwidget" "css_element" should exist
-
 
101
    And I should see "Select visible groups" in the ".groupsearchwidget" "css_element"
-
 
102
    And I confirm "All participants" exists in the "Search groups" search combo box
-
 
103
    And I confirm "Group 1" exists in the "Search groups" search combo box
-
 
104
    # The course enforces its group mode on modules.
-
 
105
    And I am on the "C1" "course editing" page
-
 
106
    And I set the following fields to these values:
-
 
107
      | Force group mode | Yes |
-
 
108
    And I press "Save and display"
-
 
109
    And I am on the "Test assignment" Activity page
-
 
110
    And I navigate to "Submissions" in current page administration
-
 
111
    And ".groupsearchwidget" "css_element" should exist
-
 
112
    And I should see "Select separate groups" in the ".groupsearchwidget" "css_element"
-
 
113
    And I confirm "All participants" exists in the "Search groups" search combo box
-
 
114
    And I confirm "Group 1" exists in the "Search groups" search combo box
-
 
115
 
72
  @javascript
116
  @javascript
73
  Scenario: Switch between group modes
117
  Scenario: Switch between group modes
74
    Given the following "activity" exists:
118
    Given the following "activity" exists:
75
      | activity         | assign                      |
119
      | activity         | assign                      |
76
      | course           | C1                          |
120
      | course           | C1                          |
77
      | name             | Test assignment name        |
121
      | name             | Test assignment name        |
78
      | submissiondrafts | 0                           |
122
      | submissiondrafts | 0                           |
79
      | teamsubmission   | 1                           |
123
      | teamsubmission   | 1                           |
80
    And I am on the "Test assignment name" Activity page logged in as teacher1
124
    And I am on the "Test assignment name" Activity page logged in as teacher1
81
    When I follow "View all submissions"
125
    When I navigate to "Submissions" in current page administration
82
    Then I should see "Default group" in the "Student 0" "table_row"
126
    Then I should see "Default group" in the "Student 0" "table_row"
83
    And I should see "Default group" in the "Student 1" "table_row"
127
    And I should see "Default group" in the "Student 1" "table_row"
84
    And I should see "Default group" in the "Student 2" "table_row"
128
    And I should see "Default group" in the "Student 2" "table_row"
85
    And I should see "Default group" in the "Student 3" "table_row"
129
    And I should see "Default group" in the "Student 3" "table_row"
Línea 94... Línea 138...
94
    And the following "group members" exist:
138
    And the following "group members" exist:
95
      | user     | group |
139
      | user     | group |
96
      | student0 | G1    |
140
      | student0 | G1    |
97
      | student1 | G1    |
141
      | student1 | G1    |
98
    And I am on the "Test assignment name" "assign activity" page
142
    And I am on the "Test assignment name" "assign activity" page
99
    And I follow "View all submissions"
143
    And I navigate to "Submissions" in current page administration
100
    And I set the field "Separate groups" to "Group 1"
144
    And I click on "Group 1" in the "Search groups" search combo box
101
    And I should see "Group 1" in the "Student 0" "table_row"
145
    And I should see "Group 1" in the "Student 0" "table_row"
102
    And I should see "Group 1" in the "Student 1" "table_row"
146
    And I should see "Group 1" in the "Student 1" "table_row"
103
    And I should not see "Student 2"
147
    And I should not see "Student 2"
104
    And I set the field "Separate groups" to "All participants"
148
    And I click on "All participants" in the "Search groups" search combo box
105
    And I should see "Group 1" in the "Student 0" "table_row"
149
    And I should see "Group 1" in the "Student 0" "table_row"
106
    And I should see "Group 1" in the "Student 1" "table_row"
150
    And I should see "Group 1" in the "Student 1" "table_row"
107
    And I should see "Default group" in the "Student 2" "table_row"
151
    And I should see "Default group" in the "Student 2" "table_row"
108
    And I should see "Default group" in the "Student 3" "table_row"
152
    And I should see "Default group" in the "Student 3" "table_row"
Línea 123... Línea 167...
123
      | preventsubmissionnotingroup         | 0                           |
167
      | preventsubmissionnotingroup         | 0                           |
124
    And the following "mod_assign > submissions" exist:
168
    And the following "mod_assign > submissions" exist:
125
      | assign                | user      | onlinetext                          |
169
      | assign                | user      | onlinetext                          |
126
      | Test assignment name  | student1  | I'm the student's first submission  |
170
      | Test assignment name  | student1  | I'm the student's first submission  |
127
    And I am on the "Test assignment name" Activity page logged in as teacher1
171
    And I am on the "Test assignment name" Activity page logged in as teacher1
128
    When I follow "View all submissions"
172
    When I navigate to "Submissions" in current page administration
129
    Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
173
    Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
130
    And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
174
    And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
131
    And "Student 3" row "Status" column of "generaltable" table should not contain "Submitted for grading"
175
    And "Student 3" row "Status" column of "generaltable" table should not contain "Submitted for grading"
132
    And "Student 4" row "Status" column of "generaltable" table should not contain "Submitted for grading"
176
    And "Student 4" row "Status" column of "generaltable" table should not contain "Submitted for grading"
133
    And the following "mod_assign > submissions" exist:
177
    And the following "mod_assign > submissions" exist:
134
      | assign                | user      | onlinetext                          |
178
      | assign                | user      | onlinetext                          |
135
      | Test assignment name  | student3  | I'm the student's first submission  |
179
      | Test assignment name  | student3  | I'm the student's first submission  |
136
    And I am on the "Test assignment name" Activity page
180
    And I am on the "Test assignment name" Activity page
137
    And I follow "View all submissions"
181
    And I navigate to "Submissions" in current page administration
138
    And "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
182
    And "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
139
    And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
183
    And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
140
    And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
184
    And "Student 3" row "Status" column of "generaltable" table should contain "Submitted for grading"
141
    And "Student 4" row "Status" column of "generaltable" table should contain "Submitted for grading"
185
    And "Student 4" row "Status" column of "generaltable" table should contain "Submitted for grading"
Línea 152... Línea 196...
152
      | name                                | Test assignment name        |
196
      | name                                | Test assignment name        |
153
      | submissiondrafts                    | 0                           |
197
      | submissiondrafts                    | 0                           |
154
      | assignsubmission_onlinetext_enabled | 1                           |
198
      | assignsubmission_onlinetext_enabled | 1                           |
155
      | assignsubmission_file_enabled       | 0                           |
199
      | assignsubmission_file_enabled       | 0                           |
156
      | teamsubmission                      | 1                           |
200
      | teamsubmission                      | 1                           |
-
 
201
      | maxattempts                         | -1                          |
157
      | attemptreopenmethod                 | manual                      |
202
      | attemptreopenmethod                 | manual                      |
158
      | requireallteammemberssubmit         | 0                           |
203
      | requireallteammemberssubmit         | 0                           |
159
    And the following "mod_assign > submissions" exist:
204
    And the following "mod_assign > submissions" exist:
160
      | assign                | user      | onlinetext                          |
205
      | assign                | user      | onlinetext                          |
161
      | Test assignment name  | student1  | I'm the student's first submission  |
206
      | Test assignment name  | student1  | I'm the student's first submission  |
162
    And I am on the "Test assignment name" Activity page logged in as teacher1
207
    And I am on the "Test assignment name" Activity page logged in as teacher1
163
    And I follow "View all submissions"
-
 
164
    And I click on "Grade" "link" in the "Student 1" "table_row"
208
    And I go to "Student 1" "Test assignment name" activity advanced grading page
165
    And I set the following fields to these values:
209
    And I set the following fields to these values:
166
      | Grade out of 100 | 50.0 |
210
      | Grade out of 100 | 50.0 |
167
      | Apply grades and feedback to entire group | 1 |
211
      | Apply grades and feedback to entire group | 1 |
168
    And I press "Save changes"
212
    And I press "Save changes"
169
    And I set the following fields to these values:
213
    And I set the following fields to these values:
170
      | Allow another attempt | 1 |
214
      | Allow another attempt | 1 |
171
    And I press "Save changes"
215
    And I press "Save changes"
172
    When I am on the "Test assignment name" "assign activity" page
216
    When I am on the "Test assignment name" "assign activity" page
173
    And I follow "View all submissions"
217
    And I navigate to "Submissions" in current page administration
174
    Then "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
218
    Then "Student 1" row "Status" column of "generaltable" table should contain "Reopened"
175
    And "Student 2" row "Status" column of "generaltable" table should contain "Reopened"
219
    And "Student 2" row "Status" column of "generaltable" table should contain "Reopened"
Línea 176... Línea 220...
176
 
220
 
177
  Scenario: Confirm groups and submission counts are correct
221
  Scenario: Confirm groups and submission counts are correct
Línea 254... Línea 298...
254
    And I should see "Submitted for grading"
298
    And I should see "Submitted for grading"
255
    And I am on the "C1" Course page logged in as student2
299
    And I am on the "C1" Course page logged in as student2
256
    And I click on "Assignments" "link" in the "Activities" "block"
300
    And I click on "Assignments" "link" in the "Activities" "block"
257
    And I should see "Submitted for grading"
301
    And I should see "Submitted for grading"
258
    And I am on the "Test assignment name" Activity page logged in as teacher1
302
    And I am on the "Test assignment name" Activity page logged in as teacher1
259
    When I follow "View all submissions"
303
    When I navigate to "Submissions" in current page administration
260
    Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
304
    Then "Student 1" row "Status" column of "generaltable" table should contain "Submitted for grading"
261
    And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
305
    And "Student 2" row "Status" column of "generaltable" table should contain "Submitted for grading"
Línea 262... Línea 306...
262
 
306
 
263
  @javascript @_file_upload
307
  @javascript @_file_upload