[Behat] Filtering customers by groups scenarios

This commit is contained in:
Jan Goralski 2022-11-17 12:26:45 +01:00
parent 59c0b3eaf2
commit 647e64a052
No known key found for this signature in database
GPG key ID: 95D91BA380F31EDD

View file

@ -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