mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Behat] Filtering customers by groups scenarios
This commit is contained in:
parent
59c0b3eaf2
commit
647e64a052
1 changed files with 30 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
@managing_customers
|
||||
Feature: Filtering customers by groups
|
||||
In order to quickly find customers belonging to specific groups
|
||||
As an Administrator
|
||||
I want to be able to filter customers on the list
|
||||
|
||||
Background:
|
||||
Given the store has a customer group "Retail"
|
||||
And the store has a customer group "Wholesale"
|
||||
And the store has customer "f.baggins@example.com"
|
||||
And the store has customer "g.bespoke@example.com"
|
||||
And this customer belongs to group "Retail"
|
||||
And the store has customer "l.abhorsen@example.com"
|
||||
And this customer belongs to group "Wholesale"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Filtering customers by a group
|
||||
When I want to see all customers in store
|
||||
And I filter by group "Retail"
|
||||
Then I should see a single customer on the list
|
||||
And I should see the customer "g.bespoke@example.com" in the list
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Filtering customers by multiple groups
|
||||
When I want to see all customers in store
|
||||
And I filter by groups "Retail" and "Wholesale"
|
||||
Then I should see 2 customers in the list
|
||||
And I should see the customer "l.abhorsen@example.com" in the list
|
||||
And I should see the customer "g.bespoke@example.com" in the list
|
||||
Loading…
Add table
Reference in a new issue