Properly test that menu do not show disabled categories

This commit is contained in:
Luca Gallinari 2020-04-20 10:42:01 +02:00 committed by Manuele Menozzi
parent 45adc6682d
commit e2f1e7ac67
2 changed files with 4 additions and 3 deletions

View file

@ -12,10 +12,10 @@ Feature: Viewing only enabled taxons in taxon menu
And the "Accessories" taxon has children taxons "Caps" and "Belts"
And channel "United States" has menu taxon "Category"
@ui @todo
@ui
Scenario: Viewing only enabled taxons in taxon menu
Given the "Clothes" taxon is disabled
And the "Belts" taxon is disabled
When I visit the homepage
Then I should see "Accessories" and "Caps" in the menu
And I should not see "Clothes", "T-Shirts", "Coats" and "Belts" in the menu
Then I should see "Caps" in the menu
And I should not see "T-Shirts", "Coats" and "Belts" in the menu

View file

@ -58,6 +58,7 @@ final class HomepageContext implements Context
}
/**
* @Then I should see :firstMenuItem in the menu
* @Then I should see :firstMenuItem and :secondMenuItem in the menu
*/
public function iShouldSeeAndInTheMenu(string ...$menuItems): void