Sylius/features/addressing/managing_countries/province_unique_code_validation.feature
2016-04-22 13:22:43 +02:00

18 lines
761 B
Gherkin

@managing_countries
Feature: Province unique code validation
In order to uniquely identify provinces
As an Administrator
I want to be prevented from adding two provinces with the same code
Background:
Given the store has country "United Kingdom"
And this country has the "Northern Ireland" province with "GB-NIR" code
And I am logged in as an administrator
@ui @javascript
Scenario: Trying to add a new province with taken code
Given I want to edit this country
And I add the "Scotland" province with "GB-NIR" code
And I try to save changes
Then I should be notified that province code must be unique
And province with name "Scotland" should not be added in this country