Skip to content

Commit

Permalink
Merge branch 'MDL-78097-fix' of https://github.com/sarjona/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Aug 22, 2023
2 parents bc67e79 + 8db9d6d commit 47ca66a
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions grade/report/grader/tests/behat/tertiary_name_filter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -155,53 +155,53 @@ Feature: Within the grader report, test that we can open our generic filter drop
When I press "Apply"
And the field "Search users" matches value "Student 1"
Then the following should exist in the "user-grades" table:
| -1- |
| Student 1 |
| -1- | -1- | -3- |
| Student 1 | student1@example.com | - |
And the following should not exist in the "user-grades" table:
| -1- |
| Teacher 1 |
| Dummy User |
| User Example |
| User Test |
| Turtle Manatee |
| -1- | -1- | -3- |
| Teacher 1 | teacher1@example.com | - |
| Dummy User | student2@example.com | - |
| User Example | student3@example.com | - |
| User Test | student4@example.com | - |
| Turtle Manatee | student5@example.com | - |
And I click on "First (S)" "combobox"
And I select "M" in the "First name" "core_grades > initials bar"
And I press "Apply"
And the following should not exist in the "user-grades" table:
| -1- |
| Teacher 1 |
| Student 1 |
| Dummy User |
| User Example |
| User Test |
| Turtle Manatee |
| -1- | -1- | -3- |
| Student 1 | student1@example.com | - |
| Teacher 1 | teacher1@example.com | - |
| Dummy User | student2@example.com | - |
| User Example | student3@example.com | - |
| User Test | student4@example.com | - |
| Turtle Manatee | student5@example.com | - |

Scenario: A teacher can search for all users then filter with the initials bar
Given I set the field "Search users" to "User"
And I click on "View all results (3)" "option_role"
And the following should exist in the "user-grades" table:
| -1- |
| Dummy User |
| User Example |
| User Test |
| -1- | -1- | -3- |
| User Example | student3@example.com | - |
| User Test | student4@example.com | - |
| Dummy User | student2@example.com | - |
And the following should not exist in the "user-grades" table:
| -1- |
| Teacher 1 |
| Student 1 |
| Turtle Manatee |
| -1- | -1- | -3- |
| Student 1 | student1@example.com | - |
| Teacher 1 | teacher1@example.com | - |
| Turtle Manatee | student5@example.com | - |
When I click on "Filter by name" "combobox"
And I select "E" in the "Last name" "core_grades > initials bar"
And I press "Apply"
Then the following should exist in the "user-grades" table:
| -1- |
| User Example |
| -1- | -1- | -3- |
| User Example | student3@example.com | - |
And the following should not exist in the "user-grades" table:
| -1- |
| Teacher 1 |
| Student 1 |
| Dummy User |
| User Test |
| Turtle Manatee |
| -1- | -1- | -3- |
| Student 1 | student1@example.com | - |
| Teacher 1 | teacher1@example.com | - |
| Dummy User | student2@example.com | - |
| User Test | student4@example.com | - |
| Turtle Manatee | student5@example.com | - |

# This can be expanded for left/right/home & end keys but will have to be done in conjunction with the non mini render.
@accessibility
Expand Down

0 comments on commit 47ca66a

Please sign in to comment.