mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-74435 core_user: behat test polish and fixes
This commit is contained in:
parent
94aa2c78bd
commit
9efb61d321
1 changed files with 5 additions and 5 deletions
|
@ -6,9 +6,9 @@ Feature: Trim entered user filters
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exist:
|
Given the following "users" exist:
|
||||||
| username | firstname | lastname | email | idnumber |
|
| username | firstname | lastname | email |
|
||||||
| teacher1 | Teacher | 1 | teacher@example.com | 0000002 |
|
| teacher1 | Teacher | 1 | teacher@example.com |
|
||||||
| student1 | Student1 | 1 | student1@example.com | 0000003 |
|
| student1 | Student | 1 | student@example.com |
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
And I navigate to "Users > Accounts > Browse list of users" in site administration
|
||||||
|
|
||||||
|
@ -17,10 +17,10 @@ Feature: Trim entered user filters
|
||||||
When I set the field "id_realname_op" to "contains"
|
When I set the field "id_realname_op" to "contains"
|
||||||
And I set the field "id_realname" to " Teacher "
|
And I set the field "id_realname" to " Teacher "
|
||||||
And I press "Add filter"
|
And I press "Add filter"
|
||||||
# We should see the teacher user, with the trimmmed string present.
|
# We should see the teacher user, with the trimmed string present.
|
||||||
Then I should see "User full name contains \"Teacher\""
|
Then I should see "User full name contains \"Teacher\""
|
||||||
And I should see "Teacher" in the "users" "table"
|
And I should see "Teacher" in the "users" "table"
|
||||||
And I should not see "Student1" in the "users" "table"
|
And I should not see "Student" in the "users" "table"
|
||||||
|
|
||||||
@javascript
|
@javascript
|
||||||
Scenario: Filtering username - with case "contains" and a whitespace string
|
Scenario: Filtering username - with case "contains" and a whitespace string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue