From a6b1dc6141e6b2a1d4d0de4fb6dfa5c0cb1469a8 Mon Sep 17 00:00:00 2001 From: Luca Gallinari Date: Fri, 15 May 2020 09:28:13 +0200 Subject: [PATCH] Use 2 different scenario for api and ui as they check menu taxons differently --- .../viewing_only_enabled_taxons_in_taxon_menu.feature | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/features/homepage/viewing_only_enabled_taxons_in_taxon_menu.feature b/features/homepage/viewing_only_enabled_taxons_in_taxon_menu.feature index c96e6b5eca..3a087b29d0 100644 --- a/features/homepage/viewing_only_enabled_taxons_in_taxon_menu.feature +++ b/features/homepage/viewing_only_enabled_taxons_in_taxon_menu.feature @@ -12,7 +12,15 @@ 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 @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 Given the "Clothes" taxon is disabled And the "Belts" taxon is disabled