Sylius/features/taxonomy/managing_taxons/deleting_taxon.feature
Mateusz Zalewski cdf7818384
Tests fixes
2019-03-14 14:48:12 +01:00

25 lines
1.1 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