Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 11... Línea 11...
11
    And the following "users" exist:
11
    And the following "users" exist:
12
      | username  | firstname  | lastname  | email                 |
12
      | username  | firstname  | lastname  | email                 |
13
      | teacher1  | Teacher    | 1         | teacher1@example.com  |
13
      | teacher1  | Teacher    | 1         | teacher1@example.com  |
14
      | student1  | Student    | 1         | student1@example.com  |
14
      | student1  | Student    | 1         | student1@example.com  |
15
      | student2  | Student    | 2         | student2@example.com  |
15
      | student2  | Student    | 2         | student2@example.com  |
-
 
16
      | student3  | Student    | 3         | student3@example.com  |
16
    And the following "course enrolments" exist:
17
    And the following "course enrolments" exist:
17
      | user      | course  | role            |
18
      | user      | course  | role            |
18
      | teacher1  | C1      | editingteacher  |
19
      | teacher1  | C1      | editingteacher  |
19
      | student1  | C1      | student         |
20
      | student1  | C1      | student         |
20
      | student2  | C1      | student         |
21
      | student2  | C1      | student         |
-
 
22
      | student3  | C1      | student         |
21
    And the following "groups" exist:
23
    And the following "groups" exist:
22
      | name    | course | idnumber |
24
      | name    | course | idnumber |
23
      | Group 1 | C1     | G1       |
25
      | Group 1 | C1     | G1       |
Línea 24... Línea 26...
24
 
26
 
Línea 37... Línea 39...
37
      | Test assignment name  | student2  | I'm the student2 submission  |
39
      | Test assignment name  | student2  | I'm the student2 submission  |
38
    And the following "role capability" exists:
40
    And the following "role capability" exists:
39
      | role                           | editingteacher |
41
      | role                           | editingteacher |
40
      | mod/assign:editothersubmission | allow          |
42
      | mod/assign:editothersubmission | allow          |
41
    And I am on the "Test assignment name" Activity page logged in as teacher1
43
    And I am on the "Test assignment name" Activity page logged in as teacher1
42
    And I follow "View all submissions"
44
    And I navigate to "Submissions" in current page administration
43
    And I should see "I'm the student1 submission"
45
    And I should see "I'm the student1 submission"
44
    And I should see "I'm the student2 submission"
46
    And I should see "I'm the student2 submission"
45
    And I set the field "selectall" to "1"
47
    And I set the field "selectall" to "1"
46
    When I set the field "operation" to "Remove submission"
48
    And I click on "Delete" "button" in the "sticky-footer" "region"
47
    And I click on "Go" "button" confirming the dialogue
49
    And I click on "Delete" "button" in the "Remove submission" "dialogue"
48
    Then I should not see "I'm the student1 submission"
50
    Then I should not see "I'm the student1 submission"
49
    And I should not see "I'm the student2 submission"
51
    And I should not see "I'm the student2 submission"
50
    And I log out
52
    And I log out
Línea 51... Línea 53...
51
 
53
 
Línea 70... Línea 72...
70
      | assign                | user      | onlinetext                   |
72
      | assign                | user      | onlinetext                   |
71
      | Test assignment name  | student1  | I'm the student1 submission  |
73
      | Test assignment name  | student1  | I'm the student1 submission  |
72
      | Test assignment name  | student2  | I'm the student2 submission  |
74
      | Test assignment name  | student2  | I'm the student2 submission  |
Línea 73... Línea 75...
73
 
75
 
74
    When I am on the "Test assignment name" Activity page logged in as teacher1
76
    When I am on the "Test assignment name" Activity page logged in as teacher1
75
    And I follow "View all submissions"
77
    And I navigate to "Submissions" in current page administration
76
    And I should see "I'm the student1 submission"
78
    And I should see "I'm the student1 submission"
77
    And I should see "I'm the student2 submission"
79
    And I should see "I'm the student2 submission"
78
    And I set the field "selectall" to "1"
80
    And I set the field "selectall" to "1"
Línea 79... Línea 81...
79
    Then I should not see "Remove submission" in the "Choose operation" "select"
81
    Then I should not see "Delete" in the "sticky-footer" "region"
80
 
82
 
-
 
83
  @javascript @skip_chrome_zerosize
-
 
84
  Scenario: Bulk remove submission when shared group users are added to the bulk
81
  @javascript @skip_chrome_zerosize
85
    removing submissions process in separate group mode without access all groups capability
-
 
86
    Given the following "group members" exist:
-
 
87
      | user      | group  |
-
 
88
      | teacher1  | G1     |
82
  Scenario: Notification should be displayed when non-group users are selected for submission bulk removal
89
      | student1  | G1     |
83
            in separate group mode
90
      | student2  | G1     |
84
    Given the following "activity" exists:
91
    Given the following "activity" exists:
85
      | activity                            | assign                  |
92
      | activity                            | assign                  |
86
      | course                              | C1                      |
93
      | course                              | C1                      |
Línea 91... Línea 98...
91
      | submissiondrafts                    | 0                       |
98
      | submissiondrafts                    | 0                       |
92
    And the following "mod_assign > submissions" exist:
99
    And the following "mod_assign > submissions" exist:
93
      | assign                | user      | onlinetext                   |
100
      | assign                | user      | onlinetext                   |
94
      | Test assignment name  | student1  | I'm the student1 submission  |
101
      | Test assignment name  | student1  | I'm the student1 submission  |
95
      | Test assignment name  | student2  | I'm the student2 submission  |
102
      | Test assignment name  | student2  | I'm the student2 submission  |
-
 
103
      | Test assignment name  | student3  | I'm the student3 submission  |
96
    And the following "role capability" exists:
104
    And the following "role capability" exists:
97
      | role                           | editingteacher |
105
      | role                           | editingteacher |
98
      | mod/assign:editothersubmission | allow          |
106
      | mod/assign:editothersubmission | allow          |
-
 
107
      | moodle/site:accessallgroups    | prevent        |
99
    And I am on the "Test assignment name" Activity page logged in as teacher1
108
    And I am on the "Test assignment name" Activity page logged in as teacher1
100
    And I follow "View all submissions"
109
    And I navigate to "Submissions" in current page administration
101
    And I should see "I'm the student1 submission"
110
    And I should see "I'm the student1 submission"
102
    And I should see "I'm the student2 submission"
111
    And I should see "I'm the student2 submission"
-
 
112
    And I should not see "I'm the student3 submission"
103
    And I set the field "selectall" to "1"
113
    And I set the field "selectall" to "1"
104
    When I set the field "operation" to "Remove submission"
114
    When I click on "Delete" "button" in the "sticky-footer" "region"
105
    And I click on "Go" "button" confirming the dialogue
115
    And I click on "Delete" "button" in the "Remove submission" "dialogue"
Línea 106... Línea 116...
106
 
116
 
107
    Then I should see "I'm the student1 submission"
117
    Then I should not see "I'm the student1 submission"
108
    And I should see "I'm the student2 submission"
-
 
109
    And I should see "The submission of Student 1 cannot be removed"
-
 
Línea 110... Línea 118...
110
    And I should see "The submission of Student 2 cannot be removed"
118
    Then I should not see "I'm the student2 submission"
111
 
119
 
112
  @javascript @skip_chrome_zerosize
120
  @javascript @skip_chrome_zerosize
113
  Scenario: Bulk remove submission when group users are added to the bulk
121
  Scenario: Bulk remove submission when group users and non-group users are added to the bulk
114
    removing submissions process in separate group mode
122
    removing submissions process in separate group mode with access all groups capability
115
    Given the following "group members" exist:
123
    Given the following "group members" exist:
116
      | user      | group  |
124
      | user      | group  |
117
      | student1  | G1     |
125
      | student1  | G1     |
Línea 126... Línea 134...
126
      | submissiondrafts                     | 0                     |
134
      | submissiondrafts                     | 0                     |
127
    And the following "mod_assign > submissions" exist:
135
    And the following "mod_assign > submissions" exist:
128
      | assign                | user      | onlinetext                   |
136
      | assign                | user      | onlinetext                   |
129
      | Test assignment name  | student1  | I'm the student1 submission  |
137
      | Test assignment name  | student1  | I'm the student1 submission  |
130
      | Test assignment name  | student2  | I'm the student2 submission  |
138
      | Test assignment name  | student2  | I'm the student2 submission  |
-
 
139
      | Test assignment name  | student3  | I'm the student3 submission  |
131
    And the following "role capability" exists:
140
    And the following "role capability" exists:
132
      | role                           | editingteacher |
141
      | role                           | editingteacher |
133
      | mod/assign:editothersubmission | allow          |
142
      | mod/assign:editothersubmission | allow          |
-
 
143
      | moodle/site:accessallgroups    | allow          |
134
    And I am on the "Test assignment name" Activity page logged in as teacher1
144
    And I am on the "Test assignment name" Activity page logged in as teacher1
135
    And I follow "View all submissions"
145
    And I navigate to "Submissions" in current page administration
136
    And I should see "I'm the student1 submission"
146
    And I should see "I'm the student1 submission"
137
    And I should see "I'm the student2 submission"
147
    And I should see "I'm the student2 submission"
-
 
148
    And I should see "I'm the student3 submission"
138
    And I set the field "selectall" to "1"
149
    And I set the field "selectall" to "1"
139
    When I set the field "operation" to "Remove submission"
150
    When I click on "Delete" "button" in the "sticky-footer" "region"
140
    And I click on "Go" "button" confirming the dialogue
151
    And I click on "Delete" "button" in the "Remove submission" "dialogue"
141
    Then I should not see "I'm the student1 submission"
152
    Then I should not see "I'm the student1 submission"
142
    And I should not see "I'm the student2 submission"
153
    And I should not see "I'm the student2 submission"
-
 
154
    And I should not see "I'm the student3 submission"