芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/user/tests/behat/filter_idnumber.feature
@core @core_user Feature: Filter users by idnumber As a system administrator I need to be able to filter users by their ID number So that I can quickly find users based on an external key. Background: Given the following "users" exist: | username | firstname | lastname | email | idnumber | | teacher1 | Teacher | 1 | teacher@example.com | 0000002 | | student1 | Student1 | 1 | student1@example.com | 0000003 | | student2 | Student2 | 1 | student2@example.com | 2000000 | | student3 | Student3 | 1 | student3@example.com | 3000000 | And I log in as "admin" And I navigate to "Users > Accounts > Browse list of users" in site administration @javascript Scenario: Filtering id numbers - with case "is empty" # We should see see admin on the user list, the following e-mail is admin's e-mail. Then I should see "moodle@example.com" in the "users" "table" And I should see "Teacher" in the "users" "table" And I should see "Student1" in the "users" "table" And I should see "Student2" in the "users" "table" And I should see "Student3" in the "users" "table" And I follow "Show more..." And I set the field "id_idnumber_op" to "is empty" When I press "Add filter" # We should see admin on the user list, the following e-mail is admin's e-mail. Then I should see "moodle@example.com" in the "users" "table" And I should not see "Teacher" in the "users" "table" And I should not see "Student1" in the "users" "table" And I should not see "Student2" in the "users" "table" And I should not see "Student3" in the "users" "table" @javascript Scenario Outline: Filtering id numbers - with all other cases # We should see see admin on the user list, the following e-mail is admin's e-mail. Then I should see "moodle@example.com" in the "users" "table" And I should see "Teacher" in the "users" "table" And I should see "Student1" in the "users" "table" And I should see "Student2" in the "users" "table" And I should see "Student3" in the "users" "table" And I follow "Show more..." And I set the field "id_idnumber_op" to "
" And I set the field "idnumber" to "
" When I press "Add filter" Then I should
"moodle@example.com" in the "users" "table" And I should
"Teacher" in the "users" "table" And I should
"Student1" in the "users" "table" And I should
"Student2" in the "users" "table" And I should
"Student3" in the "users" "table" Examples: | Category | Argument | Admin's Visibility | Teacher's Vis | S1's Vis | S2's Vis | S3's Vis | | contains | 0 | not see | see | see | see | see | | doesn't contain | 2 | see | not see | see | not see | see | | is equal to | 2000000 | not see | not see | not see | see | not see | | starts with | 0 | not see | see | see | not see | not see | | ends with | 0 | not see | not see | not see | see | see |