-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Behat] Add tests for filtering and sorting customer groups
- Loading branch information
Showing
5 changed files
with
119 additions
and
15 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
features/admin/user/managing_customer_groups/filtering_customer_groups.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,19 @@ | ||
@managing_customer_groups | ||
Feature: Filtering customer groups | ||
In order to see specific customer groups in the store | ||
As an Administrator | ||
I want to filter customer groups | ||
|
||
Background: | ||
Given the store has a customer group "Online sale" with "sale" code | ||
And the store has a customer group "Retail" with "retail" code | ||
And the store has a customer group "Wholesale" with "whole" code | ||
And I am logged in as an administrator | ||
|
||
@api-todo @ui | ||
Scenario: Filtering customer groups | ||
When I browse customer groups | ||
And I search for them by "sale" | ||
Then there should be 2 customer groups in the list | ||
And the 1st customer group on the list should have code "sale" and name "Online sale" | ||
And the 2nd customer group on the list should have code "whole" and name "Wholesale" |
47 changes: 47 additions & 0 deletions
47
features/admin/user/managing_customer_groups/sorting_customer_groups.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,47 @@ | ||
@managing_customer_groups | ||
Feature: Sorting customer groups | ||
In order to see all customer groups in the store sorted in a specific way | ||
As an Administrator | ||
I want to sort customer groups | ||
|
||
Background: | ||
Given the store has a customer group "Wholesale" with "aaa" code | ||
And the store has a customer group "Retail" with "bbb" code | ||
And the store has a customer group "Online sale" with "ccc" code | ||
And I am logged in as an administrator | ||
|
||
@api-todo @ui | ||
Scenario: Sorting customer groups by name in ascending order | ||
When I browse customer groups | ||
And I sort them by the name in ascending order | ||
Then there should be 3 customer groups in the list | ||
And the 1st customer group on the list should have code "ccc" and name "Online sale" | ||
And the 2nd customer group on the list should have code "bbb" and name "Retail" | ||
And the 3rd customer group on the list should have code "aaa" and name "Wholesale" | ||
|
||
@api-todo @ui | ||
Scenario: Sorting customer groups by name in descending order | ||
When I browse customer groups | ||
And I sort them by the name in descending order | ||
Then there should be 3 customer groups in the list | ||
And the 1st customer group on the list should have code "aaa" and name "Wholesale" | ||
And the 2nd customer group on the list should have code "bbb" and name "Retail" | ||
And the 3rd customer group on the list should have code "ccc" and name "Online sale" | ||
|
||
@api-todo @ui | ||
Scenario: Sorting customer groups by code in ascending order | ||
When I browse customer groups | ||
And I sort them by the code in ascending order | ||
Then there should be 3 customer groups in the list | ||
And the 1st customer group on the list should have code "aaa" and name "Wholesale" | ||
And the 2nd customer group on the list should have code "bbb" and name "Retail" | ||
And the 3rd customer group on the list should have code "ccc" and name "Online sale" | ||
|
||
@api-todo @ui | ||
Scenario: Sorting customer groups by code in descending order | ||
When I browse customer groups | ||
And I sort them by the code in descending order | ||
Then there should be 3 customer groups in the list | ||
And the 1st customer group on the list should have code "ccc" and name "Online sale" | ||
And the 2nd customer group on the list should have code "bbb" and name "Retail" | ||
And the 3rd customer group on the list should have code "aaa" and name "Wholesale" |
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
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