Skip to content

Commit

Permalink
Add tests for Previous, Next edit form buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bergice committed Nov 12, 2018
1 parent 0ba2ccf commit 950c118
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions tests/behat/features/manage-users.feature
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Feature: Manage users
When I click the "Users" CMS tab
And I press the "Add Member" button
And I fill in the following:
| First Name | John |
| First Name | Other Staff |
| Surname | Doe |
| Email | john.doe@example.org |
And I press the "Create" button
Expand All @@ -88,8 +88,24 @@ Feature: Manage users
When I go to "admin/security/"
Then I should see "[email protected]" in the "#Root_Users" element

Scenario: I can navigate users from the edit form and retain my search query
When I press the "Open search and filter" button
And I press the "Advanced" button
And I fill in "Search__FirstName" with "Staff"
And I press the "Search" button
Then I should see "[email protected]" in the "#Root_Users" element
And I should see "[email protected]" in the "#Root_Users" element
But I should not see "[email protected]" in the "#Root_Users" element

When I click "[email protected]" in the "#Root_Users" element
And I press the "Next" button
Then the "Email" field should contain "[email protected]"
When I press the "Previous" button
Then the "Email" field should contain "[email protected]"

Scenario: I can edit an existing user and add him to an existing group
When I click the "Users" CMS tab
When I go to "admin/security/"
And I click the "Users" CMS tab
And I click "[email protected]" in the "#Root_Users" element
And I select "ADMIN group" from "Groups"
And I press the "Apply changes" button
Expand Down

0 comments on commit 950c118

Please sign in to comment.