Sylius/features/taxonomy/managing_taxons/taxon_unique_code_validation.feature
2022-03-11 09:20:29 +01:00

19 lines
756 B
Gherkin

@managing_taxons
Feature: Taxon unique code validation
In order to uniquely identify taxons
As an Administrator
I want to be prevented from adding two taxons with same code
Background:
Given the store is available in "English (United States)"
And the store classifies its products as "T-Shirts"
And I am logged in as an administrator
@ui
Scenario: Trying to add taxon with taken code
When I want to create a new taxon
And I specify its code as "t_shirts"
And I name it "T-Shirts" in "English (United States)"
And I try to add it
Then I should be notified that taxon with this code already exists
And there should still be only one taxon with code "t_shirts"