From 838b774d274d4837fad9cee09f0087b6992437e5 Mon Sep 17 00:00:00 2001 From: Kate Kyzyma Date: Wed, 3 Jun 2020 15:27:04 +0300 Subject: [PATCH 1/2] Refactoring the test --- .../AdminChangeCategoryNameActionGroup.xml | 20 +++++++ ...ntAssertCategoryNameIsShownActionGroup.xml | 22 ++++++++ ...frontNavigateToSpecifiedUrlActionGroup.xml | 21 +++++++ ...minUpdateCategoryNameWithStoreViewTest.xml | 55 ++++++++++--------- .../StorefrontSwitchStoreActionGroup.xml | 21 +++++++ 5 files changed, 113 insertions(+), 26 deletions(-) create mode 100644 app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminChangeCategoryNameActionGroup.xml create mode 100644 app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownActionGroup.xml create mode 100644 app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateToSpecifiedUrlActionGroup.xml create mode 100644 app/code/Magento/Store/Test/Mftf/ActionGroup/StorefrontSwitchStoreActionGroup.xml diff --git a/app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminChangeCategoryNameActionGroup.xml b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminChangeCategoryNameActionGroup.xml new file mode 100644 index 0000000000000..020fb27063be7 --- /dev/null +++ b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminChangeCategoryNameActionGroup.xml @@ -0,0 +1,20 @@ + + + + + + + Switch the Storefront to the provided Store. + + + + + + + diff --git a/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownActionGroup.xml b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownActionGroup.xml new file mode 100644 index 0000000000000..65b32f4dba716 --- /dev/null +++ b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownActionGroup.xml @@ -0,0 +1,22 @@ + + + + + + + Validate that the Category is present on Frontend. + + + + + + + + diff --git a/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateToSpecifiedUrlActionGroup.xml b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateToSpecifiedUrlActionGroup.xml new file mode 100644 index 0000000000000..12ca874e192ea --- /dev/null +++ b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateToSpecifiedUrlActionGroup.xml @@ -0,0 +1,21 @@ + + + + + + + Goes to the specified page on the Storefront. + + + + + + + + + diff --git a/app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryNameWithStoreViewTest.xml b/app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryNameWithStoreViewTest.xml index 0ca8e74c4e59e..a4c6ce796701b 100644 --- a/app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryNameWithStoreViewTest.xml +++ b/app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryNameWithStoreViewTest.xml @@ -32,16 +32,12 @@ - - - - - - - - - + + + + + @@ -50,32 +46,39 @@ - - - - - + + + + + + + + + + - - - - - - - - + + + + + + + - - + + - - + + + + + diff --git a/app/code/Magento/Store/Test/Mftf/ActionGroup/StorefrontSwitchStoreActionGroup.xml b/app/code/Magento/Store/Test/Mftf/ActionGroup/StorefrontSwitchStoreActionGroup.xml new file mode 100644 index 0000000000000..4a403364a91e3 --- /dev/null +++ b/app/code/Magento/Store/Test/Mftf/ActionGroup/StorefrontSwitchStoreActionGroup.xml @@ -0,0 +1,21 @@ + + + + + + + Switch the Storefront to the provided Store. + + + + + + + + From 740408de657d7c180d0dff5c113b1cbbd3ce6d9f Mon Sep 17 00:00:00 2001 From: Kate Kyzyma Date: Wed, 3 Jun 2020 16:32:19 +0300 Subject: [PATCH 2/2] Refactoring the test --- ...ategoryNameIsNotShownInMenuActionGroup.xml | 22 +++++++++++++++++++ ...tCategoryNameIsShownInMenuActionGroup.xml} | 4 ++-- ...frontNavigateToSpecifiedUrlActionGroup.xml | 21 ------------------ ...minUpdateCategoryNameWithStoreViewTest.xml | 19 ++++++++-------- 4 files changed, 34 insertions(+), 32 deletions(-) create mode 100644 app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsNotShownInMenuActionGroup.xml rename app/code/Magento/Catalog/Test/Mftf/ActionGroup/{StorefrontAssertCategoryNameIsShownActionGroup.xml => StorefrontAssertCategoryNameIsShownInMenuActionGroup.xml} (78%) delete mode 100644 app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateToSpecifiedUrlActionGroup.xml diff --git a/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsNotShownInMenuActionGroup.xml b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsNotShownInMenuActionGroup.xml new file mode 100644 index 0000000000000..cead98091d268 --- /dev/null +++ b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsNotShownInMenuActionGroup.xml @@ -0,0 +1,22 @@ + + + + + + + Validate that the Category is not present in menu on Frontend. + + + + + + + + diff --git a/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownActionGroup.xml b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownInMenuActionGroup.xml similarity index 78% rename from app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownActionGroup.xml rename to app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownInMenuActionGroup.xml index 65b32f4dba716..c56a18b4895a4 100644 --- a/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownActionGroup.xml +++ b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertCategoryNameIsShownInMenuActionGroup.xml @@ -8,9 +8,9 @@ - + - Validate that the Category is present on Frontend. + Validate that the Category is present in menu on Frontend. diff --git a/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateToSpecifiedUrlActionGroup.xml b/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateToSpecifiedUrlActionGroup.xml deleted file mode 100644 index 12ca874e192ea..0000000000000 --- a/app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontNavigateToSpecifiedUrlActionGroup.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - Goes to the specified page on the Storefront. - - - - - - - - - diff --git a/app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryNameWithStoreViewTest.xml b/app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryNameWithStoreViewTest.xml index a4c6ce796701b..f4d464455491b 100644 --- a/app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryNameWithStoreViewTest.xml +++ b/app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateCategoryNameWithStoreViewTest.xml @@ -53,7 +53,7 @@ - + @@ -69,16 +69,17 @@ - - - + + + + + + + - - - - + + -