Sylius/features/homepage/viewing_only_enabled_taxons_in_taxon_menu.feature

21 lines
964 B
Gherkin

@homepage
Feature: Viewing only enabled taxons in taxon menu
In order to browse only available categories
As a Visitor
I want to see only enabled taxons in taxon menu
Background:
Given the store operates on a single channel in "United States"
And the store classifies its products as "Category"
And the "Category" taxon has children taxons "Clothes" and "Accessories"
And the "Clothes" taxon has children taxons "T-Shirts" and "Coats"
And the "Accessories" taxon has children taxons "Caps" and "Belts"
And channel "United States" has menu taxon "Category"
@api @ui
Scenario: Viewing only enabled taxons in taxon menu
Given the "Clothes" taxon is disabled
And the "Belts" taxon is disabled
When I check available taxons
Then I should see "Accessories" and "Caps" in the menu
And I should not see "Clothes", "T-Shirts", "Coats" and "Belts" in the menu