-
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 and styling for betterbuttons port (#744)
* MINOR: Right align elements in toolbar and add rounding on buttons * Add tests for `Previous`, `Next` edit form buttons * Fix discard confirmation for buttons Fix tests and add check for discard confirmation * Rebuild * Use sorting in test instead of filtering temporarily to work around discard confirmation on search form bug * Add new plus icon `font-icon-plus-thin` for adding new record * Update test to not conflict with other staff member email * Add `font-icon-plus-thin` and refactor `Toolbar.scss` to be more clean
- Loading branch information
Showing
16 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
|
@@ -560,3 +560,6 @@ | |
.font-icon-accessibility:before { | ||
content: "\e04f"; | ||
} | ||
.font-icon-plus-thin:before { | ||
content: "\e050"; | ||
} |
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
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 |
---|---|---|
|
@@ -721,3 +721,7 @@ | |
.font-icon-accessibility:before { | ||
content: "\e04f"; | ||
} | ||
|
||
.font-icon-plus-thin:before { | ||
content: "\e050"; | ||
} |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ Feature: Manage users | |
Given a "member" "ADMIN" belonging to "ADMIN group" with "Email"="[email protected]" | ||
And the "member" "ADMIN" belonging to "ADMIN group2" | ||
And a "member" "Staff" belonging to "Staff group" with "Email"="[email protected]" | ||
And a "member" "Other Staff" belonging to "Staff group" with "Email"="[email protected]" | ||
And the "group" "ADMIN group" has permissions "Full administrative rights" | ||
And the "group" "ADMIN group2" has permissions "Full administrative rights" | ||
And I am logged in with "ADMIN" permissions | ||
|
@@ -88,8 +89,32 @@ Feature: Manage users | |
When I go to "admin/security/" | ||
Then I should see "[email protected]" in the "#Root_Users" element | ||
|
||
Scenario: I can edit an existing user and add him to an existing group | ||
@modal | ||
Scenario: I can navigate users from the edit form and retain my search query | ||
When I click the "Users" CMS tab | ||
And I press the "First Name" button | ||
|
||
Then I should see "[email protected]" in the "#Root_Users" element | ||
And I should see "[email protected]" in the "#Root_Users" element | ||
And I should see "[email protected]" in the "#Root_Users" element | ||
|
||
When I click "[email protected]" in the "#Root_Users" element | ||
And I press the "Form_ItemEditForm_action_doNext" button | ||
Then the "Email" field should contain "[email protected]" | ||
When I press the "Form_ItemEditForm_action_doPrevious" button | ||
Then the "Email" field should contain "[email protected]" | ||
|
||
When I fill in "FirstName" with "Staff Renamed" | ||
And I press the "Form_ItemEditForm_action_doNew" button | ||
Then I see the text "Are you sure you want to navigate away from this page?" in the alert | ||
And I dismiss the dialog | ||
|
||
When I go to "admin/security/" | ||
Then I confirm the dialog | ||
|
||
Scenario: I can edit an existing user and add him to an existing group | ||
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 | ||
|