mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
33 lines
1.5 KiB
Gherkin
33 lines
1.5 KiB
Gherkin
@managing_taxons
|
|
Feature: Deleting a taxon
|
|
In order to remove test, obsolete or incorrect taxons
|
|
As an Administrator
|
|
I want to be able to delete a taxon
|
|
|
|
Background:
|
|
Given I am logged in as an administrator
|
|
|
|
@ui @javascript
|
|
Scenario: Deleted taxon should disappear from the registry
|
|
Given the store classifies its products as "T-Shirts"
|
|
When I delete taxon named "T-Shirts"
|
|
Then the taxon named "T-Shirts" should no longer exist in the registry
|
|
|
|
@ui @javascript
|
|
Scenario: Deleting a taxon with a child does not delete any other taxons
|
|
Given the store classifies its products as "Main catalog"
|
|
And the "Main catalog" taxon has children taxon "Shoes" and "Shovels"
|
|
And the "Shoes" taxon has children taxon "Men" and "Women"
|
|
When I delete taxon named "Shoes"
|
|
Then the taxon named "Shoes" should no longer exist in the registry
|
|
And the taxon named "Men" should no longer exist in the registry
|
|
And the taxon named "Women" should no longer exist in the registry
|
|
But the "Shovels" taxon should appear in the registry
|
|
|
|
@ui @javascript
|
|
Scenario: Deleted taxon should disappear from the registry
|
|
Given the store classifies its products as "T-Shirts" and "Caps"
|
|
And the store operates on a channel named "Web Store"
|
|
And channel "Web Store" has menu taxon "Caps"
|
|
When I delete taxon named "Caps"
|
|
Then I should be notified that I cannot delete a menu taxon of any channel
|