Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAP-18994: Backoffice User with Specific Role does not have access to…
… the entity if his used Search (#24380) - fix entities with routes to update pages in search results - add "acl_permission" option to search.yml to have possibility search entities depends on permissions
- Loading branch information
1 parent
61feecd
commit ec5ecb8
Showing
3 changed files
with
36 additions
and
1 deletion.
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
34 changes: 34 additions & 0 deletions
34
src/Oro/Bundle/CustomerBundle/Tests/Behat/Features/customer_user_role_search.feature
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@fixture-OroUserBundle:user.yml | ||
|
||
Feature: Customer User Role search | ||
In order to search Customer User Role | ||
As an user | ||
I should see view page of Customer User Role entity in search results with role permissions 'View:Global' | ||
for Customer User Role entity | ||
|
||
Scenario: Edit view permissions for Customer User Role entity with Sales Rep Role | ||
Given I login as administrator | ||
Then go to System / User Management / Roles | ||
When I filter Label as is equal to "Sales Rep" | ||
And I click edit "Sales Rep" in grid | ||
And select following permissions: | ||
| Customer User Role | View:Global | | ||
And save and close form | ||
Then I should see "Role saved" flash message | ||
|
||
Scenario: Search Customer User Role | ||
Given I login as "charlie" user | ||
And I click "Search" | ||
And type "admin" in "search" | ||
When I click "Search Submit" | ||
Then I should be on Search Result page | ||
And I should see following search entity types: | ||
| Type | N | isSelected | | ||
| Customer User Roles | 1 | | | ||
And I should see following search results: | ||
| Title | Type | | ||
| Administrator | Customer User Role | | ||
|
||
Scenario: View entity from search results | ||
Given I follow "Administrator" | ||
Then I should be on Customer User Role View page |
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