Use 2 different scenario for api and ui as they check menu taxons differently

This commit is contained in:
Luca Gallinari 2020-05-15 09:28:13 +02:00 committed by Manuele Menozzi
parent fe45cd177c
commit a6b1dc6141

View file

@ -12,7 +12,15 @@ Feature: Viewing only enabled taxons in taxon menu
And the "Accessories" taxon has children taxons "Caps" and "Belts" And the "Accessories" taxon has children taxons "Caps" and "Belts"
And channel "United States" has menu taxon "Category" And channel "United States" has menu taxon "Category"
@ui @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 Caps" and "Caps" in the menu
And I should not see "Clothes", "T-Shirts", "Coats" and "Belts" in the menu
@api
Scenario: Viewing only enabled taxons in taxon menu Scenario: Viewing only enabled taxons in taxon menu
Given the "Clothes" taxon is disabled Given the "Clothes" taxon is disabled
And the "Belts" taxon is disabled And the "Belts" taxon is disabled