Skip to content

Commit

Permalink
fixed failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Feb 11, 2022
1 parent 73d97dd commit b1242cb
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!--Create subcategory under parent category -->
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
<argument name="category" value="$$createCategory.name$$"/>
<argument name="category" value="$$createCategory$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickOnAddSubCategoryButton"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@
<comment userInput="Open Category Page and select created category" stepKey="commentOpenCategoryPage"/>
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory">
<argument name="category" value="{{_defaultCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoaded2"/>
<!--Select Products-->
<comment userInput="Select Products" stepKey="commentSelectProducts"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<after>
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="goToCategoryPage"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickCategoryLink">
<argument name="category" value="{{FirstLevelSubCat.name}}"/>
<argument name="category" value="{{FirstLevelSubCat}}"/>
</actionGroup>
<click selector="{{AdminCategoryMainActionsSection.DeleteButton}}" stepKey="clickDelete"/>
<waitForElementVisible selector="{{AdminCategoryModalSection.message}}" stepKey="waitForConfirmationModal"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory">
<argument name="category" value="{{CatNotActive.name}}"/>
<argument name="category" value="{{CatNotActive}}"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategoryPageToLoad"/>
<actionGroup ref="AdminSaveCategoryActionGroup" stepKey="saveSubCategory"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<argument name="categoryEntity" value="SimpleSubCategory"/>
</actionGroup>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickOnCreatedNewRootCategory1">
<argument name="category" value="{{NewRootCategory.name}}"/>
<argument name="category" value="{{NewRootCategory}}"/>
</actionGroup>
<scrollToTopOfPage stepKey="scrollToTopOfPage3"/>
<!--Create another subcategory-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<scrollToTopOfPage stepKey="scrollToTopOfPage2"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="expandToSeeAllCategories"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickRootCategoryInTree">
<argument name="category" value="{{NewRootCategory.name}}"/>
<argument name="category" value="{{NewRootCategory}}"/>
</actionGroup>

<!--Verify Delete button is not displayed-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<!-- Step 1-2: Open Category page and Set scope selector to All Store Views-->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="goToCategoryPage"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickCategoryName">
<argument name="category" value="$$createCategory.name$$"/>
<argument name="category" value="$$createCategory$$"/>
</actionGroup>
<click selector="{{AdminCategoryProductsSection.sectionHeader}}" stepKey="openProductSection"/>
<grabTextFrom selector="{{AdminCategorySidebarTreeSection.categoryInTree($$createCategory.name$$)}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
<!--Open Category Page-->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
<argument name="category" value="{{_defaultCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>

<!--Enable Anchor for _defaultCategory Category-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
<argument name="category" value="{{FirstLevelSubCat.name}}"/>
<argument name="category" value="{{FirstLevelSubCat}}"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
<!--Open Category page-->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
<argument name="category" value="{{_defaultCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>

<!--Enable Anchor for _defaultCategory category -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
<!-- Open Category Page -->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
<argument name="category" value="{{_defaultCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>
<!-- Create three level deep sub Category -->
<click selector="{{AdminCategorySidebarActionSection.AddSubcategoryButton}}" stepKey="clickAddSubCategoryButton"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
<argument name="category" value="{{SimpleRootSubCategory.name}}"/>
<argument name="category" value="{{SimpleRootSubCategory}}"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{_defaultCategory.name}}" stepKey="updateCategoryName"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@

<!--Update Category name,description, urlKey, meta title and disable Include in Menu-->
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory">
<argument name="category" value="{{_defaultCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="{{SimpleRootSubCategory.name}}" stepKey="fillCategoryName"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>
<click selector="{{AdminCategoryBasicFieldSection.includeInMenuLabel}}" stepKey="disableIncludeInMenu"/>
Expand Down Expand Up @@ -69,7 +67,7 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage1"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree1"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory1">
<argument name="category" value="{{SimpleRootSubCategory.name}}"/>
<argument name="category" value="{{SimpleRootSubCategory}}"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategoryPageToLoad"/>
<see selector="{{AdminCategoryContentSection.categoryPageTitle}}" userInput="{{SimpleRootSubCategory.name}}" stepKey="seeUpdatedCategoryTitle"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
<!--Open Category Page-->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory">
<argument name="category" value="{{_defaultCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory"/>
<checkOption selector="{{AdminCategoryBasicFieldSection.EnableCategory}}" stepKey="enableCategory"/>

<!--Update Product Display Setting-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openAdminCategoryIndexPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickOnExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCreatedCategory">
<argument name="category" value="{{CatNotIncludeInMenu.name}}"/>
<argument name="category" value="{{CatNotIncludeInMenu}}"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategoryPageToLoad"/>
<click selector="{{AdminCategoryBasicFieldSection.includeInMenuLabel}}" stepKey="enableIncludeInMenuOption"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="OpenCategoryCatalogPage"/>
<actionGroup ref="AdminExpandCategoryTreeActionGroup" stepKey="clickExpandTree"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="selectCategory">
<argument name="category" value="$$initialCategoryEntity.name$$"/>
<argument name="category" value="$$initialCategoryEntity$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageToLoad"/>
<click selector="{{AdminCategoryProductsSection.sectionHeader}}" stepKey="clickAdminCategoryProductSection"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<comment userInput="BIC workaround" stepKey="loginAsAdmin1"/>
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToCategoryPage1"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="openNewRootCategory">
<argument name="category" value="$$createNewRootCategoryA.name$$"/>
<argument name="category" value="$$createNewRootCategoryA$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageCategoryLoadAfterClickOnNewRootCategory"/>
<seeElement selector="{{AdminCategoryMainActionsSection.DeleteButton}}" stepKey="assertDeleteButtonIsPresent"/>
Expand Down Expand Up @@ -158,7 +158,7 @@
<!-- Rename New Root Category to Default category -->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToCategoryPageAfterStoreFrontProductsAssertions"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickOnNewRootCategoryA">
<argument name="category" value="$$createNewRootCategoryA.name$$"/>
<argument name="category" value="$$createNewRootCategoryA$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageNewRootCategoryALoad"/>
<fillField selector="{{AdminCategoryBasicFieldSection.CategoryNameInput}}" userInput="Default Category" stepKey="enterCategoryNameAsDefaultCategory"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@
<argument name="categoryEntity" value="_defaultCategory"/>
</actionGroup>
<!--Create category under newly created category-->
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickCreatedCategoryInTree">
<argument name="category" value="{{_defaultCategory.name}}"/>
</actionGroup>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickCreatedCategoryInTree"/>
<actionGroup ref="CreateCategoryActionGroup" stepKey="createSubCategory">
<argument name="categoryEntity" value="SimpleSubCategory"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<!--Click on first category-->
<comment userInput="Click on first category" stepKey="openFirstCategoryPage"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickCategory1Name">
<argument name="category" value="$$category1.name$$"/>
<argument name="category" value="$$category1$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategory1Page"/>
<!--Check if current category is highlighted and the others are not-->
Expand All @@ -77,7 +77,7 @@
<!--Click on second category-->
<comment userInput="Click on second category" stepKey="openSecondCategoryPage"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickCategory2Name">
<argument name="category" value="$$category2.name$$"/>
<argument name="category" value="$$category2$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForCategory2Page"/>
<!--Check if current category is highlighted and the others are not-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<!--delete root category-->
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToCategoryPage"/>
<actionGroup ref="AdminCategoriesOpenCategoryActionGroup" stepKey="clickOnDefaultRootCategory">
<argument name="category" value="$$createRootCategory.name$$"/>
<argument name="category" value="$$createRootCategory$$"/>
</actionGroup>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageDefaultCategoryEditLoad"/>
<seeElement selector="{{AdminCategoryMainActionsSection.DeleteButton}}" stepKey="assertDeleteButtonIsPresent1"/>
Expand Down

0 comments on commit b1242cb

Please sign in to comment.