Skip to content

Commit 1bc9f84

Browse files
glo74170Manjusha.S
authored andcommitted
MC-27423 : change the new category with the existing category
1 parent b40beda commit 1bc9f84

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateCategoriesWithTheSameCategoryNamesTest.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
<group value="Catalog"/>
2020
</annotations>
2121

22-
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
22+
<before>
23+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
24+
</before>
2325

2426
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="amOnAdminCategoryPage"/>
2527
<scrollToTopOfPage stepKey="scrollToTopOfPage1"/>
@@ -81,7 +83,7 @@
8183
<actionGroup ref="StorefrontNavigateToCategoryUrlActionGroup" stepKey="goToCategoryStorefrontPage1">
8284
<argument name="categoryUrl" value="{{SubCategory.urlKey}}"/>
8385
</actionGroup>
84-
<see userInput="{{NewCategory.name}}" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="assertCategoryNewHtmlOnStorefront"/>
86+
<see userInput="{{SubCategory.name}}" selector="{{StorefrontCategoryMainSection.CategoryTitle}}" stepKey="assertCategoryNewHtmlOnStorefront"/>
8587

8688
<!-- Check on storefront that category was created, Its URL path is '.../cat1/new.html'-->
8789
<amOnPage url="/{{FirstLevelSubCat.name}}/{{SubCategory.name}}.html" stepKey="goToConfigProductPage1"/>
@@ -93,7 +95,6 @@
9395

9496
<after>
9597
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="goToCategoryPage1"/>
96-
<wait stepKey="k3" time="100"/>
9798
<click selector="{{AdminCategorySidebarTreeSection.categoryInTree(SecondLevelSubCat.name)}}" stepKey="clickCategoryLink"/>
9899
<click selector="{{AdminCategoryMainActionsSection.DeleteButton}}" stepKey="clickDelete"/>
99100
<waitForElementVisible selector="{{AdminCategoryModalSection.message}}" stepKey="waitForConfirmationModal"/>
@@ -129,3 +130,4 @@
129130

130131
</test>
131132
</tests>
133+

0 commit comments

Comments
 (0)