mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
18 lines
761 B
Gherkin
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
|