Skip to content

Commit 3d055a0

Browse files
committed
MC-22760: MFTF tests stabilization - AdminMoveAnchoredCategoryToDefaultCategoryTest MC-6493
1 parent ec323e2 commit 3d055a0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@
1919
<group value="Catalog"/>
2020
</annotations>
2121
<before>
22+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
23+
<actionGroup ref="deleteAllProductsUsingProductGrid" stepKey="deleteAllProducts"/>
2224
<createData entity="ApiProductWithDescription" stepKey="product"/>
2325
</before>
2426
<after>
2527
<deleteData createDataKey="product" stepKey="delete"/>
28+
<actionGroup ref="logout" stepKey="logoutFromAdmin"/>
2629
</after>
2730
</test>
2831
<test name="AdvanceCatalogSearchSimpleProductBySkuTest">

app/code/Magento/CatalogSearch/Test/Mftf/Test/SearchEntityResultsTest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@
427427
<group value="mtf_migrated"/>
428428
</annotations>
429429
<before>
430+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
431+
<actionGroup ref="deleteAllProductsUsingProductGrid" stepKey="deleteAllProducts"/>
430432
<createData entity="ApiProductWithDescription" stepKey="simple1"/>
431433
<createData entity="ApiGroupedProduct" stepKey="createProduct"/>
432434
<createData entity="OneSimpleProductLink" stepKey="addProductOne">
@@ -441,10 +443,11 @@
441443
<after>
442444
<deleteData stepKey="deleteGroupedProduct" createDataKey="createProduct"/>
443445
<deleteData stepKey="deleteSimpleProduct" createDataKey="simple1"/>
446+
<actionGroup ref="logout" stepKey="logoutFromAdmin"/>
444447
</after>
445448
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="goToFrontPage"/>
446449
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchStorefront">
447-
<argument name="phrase" value="$createProduct.name$"/>
450+
<argument name="phrase" value="&quot;$createProduct.name$&quot;"/>
448451
</actionGroup>
449452
<actionGroup ref="StorefrontAddToCartFromQuickSearch" stepKey="addProductToCart">
450453
<argument name="productName" value="$createProduct.name$"/>

0 commit comments

Comments
 (0)