Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MFTF] Repetitive elements replaced by AdminChangeCategoryNameActionGroup #35049

Open
wants to merge 2 commits into
base: 2.4-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToNewCatalog"/>
<comment userInput="BIC workaround" stepKey="wait2"/>
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategory"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="enterCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="enterCategoryName">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<click selector="{{AdminProductFormSection.contentTab}}" stepKey="clickContentTab"/>
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE" />
<scrollTo selector="{{TinyMCESection.InsertImageIcon}}" stepKey="scrollToImageIcon"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.IncludeInMenu}}" stepKey="enableIncludeInMenu"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="addSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory"/>
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessage">
<argument name="message" value="You saved the category."/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.IncludeInMenu}}" stepKey="enableIncludeInMenu"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="addSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory"/>
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeSuccessMessage">
<argument name="message" value="You saved the category."/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
<click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$createCategory.name$$)}}" stepKey="selectCategory"/>
<waitForPageLoad stepKey="waitForPageToLoad"/>
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="addSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.IncludeInMenu}}" stepKey="enableIncludeInMenu"/>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
</after>
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToCategoryPage"/>
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategory"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="enterCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="enterCategoryName">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<click selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" stepKey="clickOnDisplaySettingsTab"/>
<waitForElementVisible selector="{{CategoryDisplaySettingsSection.filterPriceRangeUseConfig}}" stepKey="wait"/>
<scrollTo selector="{{CategoryDisplaySettingsSection.layeredNavigationPriceInput}}" stepKey="scrollToLayeredNavigationField"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
<!--Create SubCategory-->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{_defaultCategory.name}}" stepKey="fillCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="fillCategoryName">
<argument name="categoryName" value="{{_defaultCategory.name}}"/>
</actionGroup>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>

<!--Select Content and fill the options-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
<!--Create sub category-->
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{_defaultCategory.name}}" stepKey="fillCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="fillCategoryName">
<argument name="categoryName" value="{{_defaultCategory.name}}"/>
</actionGroup>
<!--Select the default product and product with grid filter-->
<scrollTo selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" x="0" y="-80" stepKey="scrollToProductInCategory"/>
<click selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" stepKey="clickOnProductInCategory"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
<!-- Create subcategory with required fields -->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{_defaultCategory.name}}" stepKey="fillCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="fillCategoryName">
<argument name="categoryName" value="{{_defaultCategory.name}}"/>
</actionGroup>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="clickSaveButton"/>
<!-- Verify success message -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@

<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="OpenAdminCatergoryIndexPage"/>
<click selector="{{AdminCategorySidebarActionSection.AddRootCategoryButton}}" stepKey="ClickOnAddRootButton"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{_defaultCategory.name}}" stepKey="FillCategoryField"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="FillCategoryField">
<argument name="categoryName" value="{{_defaultCategory.name}}"/>
</actionGroup>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="EnableCheckOption"/>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="ClickSaveButton"/>
<actionGroup ref="AssertAdminCategorySaveSuccessMessageActionGroup" stepKey="AssertSuccessMessage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@

<!--Enable Anchor for FirstLevelSubCat Category-->
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{FirstLevelSubCat.name}}" stepKey="addSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName">
<argument name="categoryName" value="{{FirstLevelSubCat.name}}"/>
</actionGroup>
<scrollTo selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" x="0" y="-80" stepKey="scrollToDisplaySetting1"/>
<click selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" stepKey="selectDisplaySetting1"/>
<checkOption selector="{{CategoryDisplaySettingsSection.anchor}}" stepKey="enableAnchor1"/>
Expand All @@ -53,7 +55,9 @@

<!--Enable Anchor for SimpleSubCategory Category and add products to the Category-->
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton1"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="addSubCategoryName1"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName1">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<scrollTo selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" x="0" y="-80" stepKey="scrollToDisplaySetting2"/>
<click selector="{{CategoryDisplaySettingsSection.DisplaySettingTab}}" stepKey="selectDisplaySetting2"/>
<checkOption selector="{{CategoryDisplaySettingsSection.anchor}}" stepKey="enableAnchor2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@

<!--Create second level category-->
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SubCategory.name}}" stepKey="addSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName">
<argument name="categoryName" value="{{SubCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory1"/>
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage1"/>

<!--Create third level category under second level category-->
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton1"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="addSubCategoryName1"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName1">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory2"/>
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage2"/>
<grabFromCurrentUrl stepKey="categoryId" regex="#\/([0-9]*)?\/$#" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@

<!--Create a Subcategory under _defaultCategory category-->
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="addSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>

<!--Add a product to SimpleSubCategory category-->
<scrollTo selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" x="0" y="-80" stepKey="scrollToProductInCategory"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickAddSubCategoryButton"/>
<waitForPageLoad stepKey="waitForAddSubCategoryClick1"/>
<waitForElementVisible selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" stepKey="waitForSubCategoryName1"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{FirstLevelSubCat.name}}" stepKey="fillSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="fillSubCategoryName">
<argument name="categoryName" value="{{FirstLevelSubCat.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveFirstLevelSubCategory"/>
<waitForElementVisible selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage"/>
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButtonAgain"/>
<waitForPageLoad stepKey="waitForAddSubCategoryClick2"/>
<waitForElementVisible selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" stepKey="waitForSubCategoryName2"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SecondLevelSubCat.name}}" stepKey="fillSecondLevelSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="fillSecondLevelSubCategoryName">
<argument name="categoryName" value="{{SecondLevelSubCat.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSecondLevelSubCategory"/>
<waitForElementVisible selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSaveSuccessMessage"/>
<grabFromCurrentUrl stepKey="categoryId" regex="#\/([0-9]*)?\/$#" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@

<!-- Create subcategory <Sub1> of the anchored category -->
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="addSubCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="addSubCategoryName">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory1"/>
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSaveSuccessMessage"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<click selector="{{AdminCategorySidebarTreeSection.categoryInTree(SimpleRootSubCategory.name)}}" stepKey="selectCategory"/>
<waitForPageLoad stepKey="waitForPageToLoad"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{_defaultCategory.name}}" stepKey="updateCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="updateCategoryName">
<argument name="categoryName" value="{{_defaultCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveUpdatedCategory"/>
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage"/>
<waitForPageLoad stepKey="waitForPageToLoad1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
<!--Update Category name,description, urlKey, meta title and disable Include in Menu-->
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<click selector="{{AdminCategorySidebarTreeSection.categoryInTree(_defaultCategory.name)}}" stepKey="selectCreatedCategory"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleRootSubCategory.name}}" stepKey="fillCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="fillCategoryName">
<argument name="categoryName" value="{{SimpleRootSubCategory.name}}"/>
</actionGroup>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>
<click selector="{{AdminCategoryBasicFieldSection.includeInMenuLabel}}" stepKey="disableIncludeInMenu"/>
<scrollTo selector="{{AdminCategoryContentSection.sectionHeader}}" x="0" y="-80" stepKey="scrollToContent"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToCategoryPageAfterStoreFrontProductsAssertions"/>
<click selector="{{AdminCategorySidebarTreeSection.categoryInTree('$$createNewRootCategoryA.name$$')}}" stepKey="clickOnNewRootCategoryA"/>
<waitForPageLoad stepKey="waitForPageNewRootCategoryALoad" />
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="Default Category" stepKey="enterCategoryNameAsDefaultCategory"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="enterCategoryNameAsDefaultCategory">
<argument name="categoryName" value="Default Category"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveCategoryDefaultCategory"/>
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="assertSuccessMessageAfterSaveDefaultCategory"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToNewCatalog"/>
<waitForLoadingMaskToDisappear stepKey="wait2" />
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategory"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="enterCategoryName"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="enterCategoryName">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<click selector="{{AdminProductFormSection.contentTab}}" stepKey="clickContentTab"/>
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE" />
<seeElement selector="{{TinyMCESection.ShowHideBtn}}" stepKey="seeShowHideBtn" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@
</actionGroup>
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickToAddCategory5"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory5"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleSubCategory.name}}" stepKey="fillCategory5Name"/>
<actionGroup ref="AdminChangeCategoryNameActionGroup" stepKey="fillCategory5Name">
<argument name="categoryName" value="{{SimpleSubCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveCategory5"/>
<actionGroup ref="AssertAdminCategorySaveSuccessMessageActionGroup" stepKey="assertCategory5Saved"/>

Expand Down