MDL-65950 core_user: Use new core/checkbox-toggleall

This commit is contained in:
Jun Pataleta 2019-03-14 12:32:35 +08:00
parent 8e9e9a5f7e
commit df92be9d67
7 changed files with 177 additions and 162 deletions

View file

@ -27,7 +27,7 @@ Feature: Bulk enrolments
When I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to course participants
And I press "Select all"
And I click on "Select all" "checkbox"
And I set the field "With selected users..." to "Edit selected user enrolments"
And I set the field "Alter status" to "Suspended"
And I press "Save changes"
@ -40,7 +40,7 @@ Feature: Bulk enrolments
When I log in as "admin"
And I am on "Course 1" course homepage
And I navigate to course participants
And I press "Select all"
And I click on "Select all" "checkbox"
And I set the field "With selected users..." to "Delete selected user enrolments"
And I press "Unenrol users"
Then I should not see "Student 1"

View file

@ -59,49 +59,49 @@ Feature: View course participants
Given I log in as "teacher1x"
And I am on "Course 1" course homepage
And I navigate to course participants
When I press "Select all"
Then the field with xpath "//tbody//tr[1]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[2]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[3]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[4]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[5]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[6]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[7]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[8]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[9]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[10]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[11]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[12]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[13]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[14]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[15]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[16]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[17]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[18]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[19]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[20]//input[@class='usercheckbox']" matches value "1"
When I click on "Select all" "checkbox"
Then the field with xpath "//tbody//tr[1]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[2]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[3]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[4]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[5]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[6]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[7]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[8]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[9]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[10]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[11]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[12]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[13]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[14]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[15]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[16]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[17]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[18]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[19]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[20]//input[contains(@class, 'usercheckbox')]" matches value "1"
And I press "Deselect all"
And the field with xpath "//tbody//tr[1]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[2]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[3]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[4]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[5]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[6]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[7]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[8]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[9]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[10]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[11]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[12]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[13]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[14]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[15]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[16]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[17]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[18]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[19]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[20]//input[@class='usercheckbox']" matches value "0"
And I click on "Deselect all" "checkbox"
And the field with xpath "//tbody//tr[1]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[2]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[3]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[4]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[5]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[6]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[7]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[8]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[9]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[10]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[11]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[12]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[13]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[14]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[15]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[16]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[17]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[18]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[19]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[20]//input[contains(@class, 'usercheckbox')]" matches value "0"
Scenario: Sort and paginate the list of users
Given I log in as "teacher1x"
@ -123,7 +123,7 @@ Feature: View course participants
And I should see "student0x@example.com"
@javascript
Scenario: Use select all users on this page, select all n users and deselect all
Scenario: Use select all users on this page, select all users and deselect all
Given the following "course enrolments" exist:
| user | course | role |
| student19x | C1 | student |
@ -131,97 +131,97 @@ Feature: View course participants
And I am on "Course 1" course homepage
And I navigate to course participants
And I follow "Surname"
And I press "Select all users on this page"
And I click on "Select all" "checkbox"
Then I should not see "Student 9x"
And the field with xpath "//tbody//tr[1]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[2]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[3]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[4]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[5]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[6]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[7]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[8]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[9]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[10]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[11]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[12]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[13]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[14]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[15]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[16]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[17]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[18]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[19]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[20]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[1]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[2]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[3]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[4]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[5]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[6]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[7]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[8]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[9]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[10]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[11]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[12]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[13]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[14]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[15]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[16]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[17]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[18]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[19]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[20]//input[contains(@class, 'usercheckbox')]" matches value "1"
And I press "Deselect all"
And the field with xpath "//tbody//tr[1]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[2]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[3]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[4]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[5]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[6]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[7]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[8]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[9]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[10]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[11]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[12]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[13]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[14]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[15]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[16]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[17]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[18]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[19]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[20]//input[@class='usercheckbox']" matches value "0"
And I click on "Deselect all" "checkbox"
And the field with xpath "//tbody//tr[1]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[2]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[3]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[4]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[5]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[6]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[7]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[8]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[9]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[10]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[11]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[12]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[13]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[14]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[15]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[16]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[17]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[18]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[19]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[20]//input[contains(@class, 'usercheckbox')]" matches value "0"
And I press "Select all 21 users"
And I should see "Student 9x"
And the field with xpath "//tbody//tr[1]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[2]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[3]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[4]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[5]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[6]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[7]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[8]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[9]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[10]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[11]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[12]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[13]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[14]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[15]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[16]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[17]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[18]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[19]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[20]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[21]//input[@class='usercheckbox']" matches value "1"
And the field with xpath "//tbody//tr[1]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[2]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[3]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[4]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[5]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[6]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[7]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[8]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[9]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[10]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[11]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[12]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[13]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[14]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[15]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[16]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[17]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[18]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[19]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[20]//input[contains(@class, 'usercheckbox')]" matches value "1"
And the field with xpath "//tbody//tr[21]//input[contains(@class, 'usercheckbox')]" matches value "1"
And I press "Deselect all"
And the field with xpath "//tbody//tr[1]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[2]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[3]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[4]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[5]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[6]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[7]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[8]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[9]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[10]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[11]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[12]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[13]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[14]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[15]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[16]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[17]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[18]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[19]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[20]//input[@class='usercheckbox']" matches value "0"
And the field with xpath "//tbody//tr[21]//input[@class='usercheckbox']" matches value "0"
And I click on "Deselect all" "checkbox"
And the field with xpath "//tbody//tr[1]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[2]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[3]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[4]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[5]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[6]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[7]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[8]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[9]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[10]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[11]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[12]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[13]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[14]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[15]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[16]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[17]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[18]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[19]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[20]//input[contains(@class, 'usercheckbox')]" matches value "0"
And the field with xpath "//tbody//tr[21]//input[contains(@class, 'usercheckbox')]" matches value "0"
Scenario: View the participants page as a teacher
Given I log in as "teacher1x"