From 9eb7a3134ae44e01e0cdbd2fbb9d9aa84f96a20c Mon Sep 17 00:00:00 2001 From: Rafikooo Date: Wed, 10 May 2023 08:27:40 +0200 Subject: [PATCH] [Feature] Add deleting a taxon that is a main taxon of a product scenario --- features/taxonomy/managing_taxons/deleting_taxon.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/features/taxonomy/managing_taxons/deleting_taxon.feature b/features/taxonomy/managing_taxons/deleting_taxon.feature index f009d9a0c7..727aad15b1 100644 --- a/features/taxonomy/managing_taxons/deleting_taxon.feature +++ b/features/taxonomy/managing_taxons/deleting_taxon.feature @@ -32,6 +32,15 @@ Feature: Deleting a taxon When I try to delete taxon named "Caps" Then I should be notified that I cannot delete a menu taxon of any channel + @todo + Scenario: Deleting a taxon that is a main taxon of a product + Given the store classifies its products as "T-Shirts" + And the store has a product "T-Shirts PHP" + And this product has a main taxon "T-Shirts" + When I delete taxon named "T-Shirts" + Then the taxon named "T-Shirts" should no longer exist in the registry + And the product "T-Shirts PHP" should no longer have a main taxon + @ui @javascript @api Scenario: Deleting root taxon above menu taxon Given the store has "Main Category" taxonomy