-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for
Previous
, Next
edit form buttons
- Loading branch information
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|