mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
30 lines
1.2 KiB
Gherkin
30 lines
1.2 KiB
Gherkin
@managing_customers
|
|
Feature: Adding a new customer
|
|
In order to track information about my customers
|
|
As an Administrator
|
|
I want to add a customer to the store
|
|
|
|
Background:
|
|
Given the store has a customer group "Retail"
|
|
And I am logged in as an administrator
|
|
|
|
@ui
|
|
Scenario: Adding a new customer
|
|
When I want to create a new customer
|
|
And I specify their email as "l.skywalker@gmail.com"
|
|
And I add them
|
|
Then I should be notified that it has been successfully created
|
|
And the customer "l.skywalker@gmail.com" should appear in the store
|
|
|
|
@ui
|
|
Scenario: Adding a new customer with full details
|
|
When I want to create a new customer
|
|
And I specify their first name as "Luke"
|
|
And I specify their last name as "Skywalker"
|
|
And I specify their email as "l.skywalker@gmail.com"
|
|
And I specify its birthday as "1892-01-03"
|
|
And I select "Male" as its gender
|
|
And I select "Retail" as their group
|
|
And I add them
|
|
Then I should be notified that it has been successfully created
|
|
And the customer "l.skywalker@gmail.com" should appear in the store
|