mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
17 lines
693 B
Gherkin
17 lines
693 B
Gherkin
@managing_customers
|
|
Feature: Customer uniqueness of email validation
|
|
In order to uniquely identify customer
|
|
As an Administrator
|
|
I want to be prevented from adding two customers with the same email
|
|
|
|
Background:
|
|
Given I am logged in as an administrator
|
|
|
|
@api @ui
|
|
Scenario: Trying to add a new customer with taken email
|
|
Given the store has customer "f.baggins@example.com"
|
|
When I want to create a new customer
|
|
And I specify their email as "f.baggins@example.com"
|
|
And I try to add them
|
|
Then I should be notified that email must be unique
|
|
And there should still be only one customer with email "f.baggins@example.com"
|