Sylius/features/taxonomy/managing_taxons/adding_taxon.feature
2016-04-29 14:33:27 +02:00

40 lines
1.6 KiB
Gherkin

@managing_taxons
Feature: Adding a new taxon
In order to categorize my merchandise
As an Administrator
I want to add a new taxon to the registry
Background:
Given the store is available in "English (United States)"
And I am logged in as an administrator
@ui
Scenario: Adding a new taxon
Given I want to create a new taxon
When I specify its code as "t-shirts"
And I name it "T-Shirts" in "English (United States)"
And I add it
Then I should be notified that it has been successfully created
And the "T-Shirts" taxon should appear in the registry
@ui
Scenario: Adding a new taxon with permalink and description
Given I want to create a new taxon
When I specify its code as "category"
And I name it "Category" in "English (United States)"
And I specify its permalink as "category" in "English (United States)"
And I describe it as "Main taxonomy for products." in "English (United States)"
And I add it
Then I should be notified that it has been successfully created
And the "Category" taxon should appear in the registry
@ui
Scenario: Adding a new taxon with parent taxon
Given the store has "Category" taxonomy
And I want to create a new taxon
When I specify its code as "stickers"
And I name it "Stickers" in "English (United States)"
And I choose "Category" as a parent taxon
And I add it
Then I should be notified that it has been successfully created
And the "Stickers" taxon should appear in the registry