Skip to content

Commit 2fec098

Browse files
committed
MC-23649: Flaky MFTF Test: MC-11016: Delete Bundle Dynamic Product
1 parent 8d3f883 commit 2fec098

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

app/code/Magento/Bundle/Test/Mftf/Test/AdminDeleteBundleDynamicPriceProductTest.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@
3636
<requiredEntity createDataKey="createSimpleProduct"/>
3737
</createData>
3838

39-
<magentoCron groups="index" stepKey="runCronIndex"/>
40-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
41-
<argument name="tags" value=""/>
39+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexInvalidatedIndices">
40+
<argument name="indices" value="cataloginventory_stock"/>
4241
</actionGroup>
4342
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
4443
</before>
@@ -48,8 +47,8 @@
4847
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
4948
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
5049
</after>
51-
<actionGroup ref="DeleteProductUsingProductGridActionGroup" stepKey="deleteBundleProductFilteredBySkuAndName">
52-
<argument name="product" value="$createDynamicBundleProduct$"/>
50+
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteBundleProductBySku">
51+
<argument name="sku" value="$createDynamicBundleProduct.sku$"/>
5352
</actionGroup>
5453
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="A total of 1 record(s) have been deleted." stepKey="deleteMessage"/>
5554
<!-- Verify product on Product Page -->
@@ -61,7 +60,6 @@
6160
</actionGroup>
6261
<!-- Should not see bundle product -->
6362
<dontSee userInput="$createDynamicBundleProduct.sku$" selector="{{StorefrontCatalogSearchMainSection.searchResults}}" stepKey="dontSeeProduct"/>
64-
<comment userInput="redundant action" stepKey="seeCantFindProductMessage"/>
6563
<amOnPage url="{{StorefrontCategoryPage.url($createCategory.custom_attributes[url_key]$)}}" stepKey="openCategoryPage"/>
6664
<!-- Should not see any products in category -->
6765
<dontSee userInput="$createDynamicBundleProduct.name$" selector="{{StorefrontCategoryMainSection.productsList}}" stepKey="dontSeeProductInCategory"/>

app/code/Magento/Bundle/Test/Mftf/Test/AdminDeleteBundleDynamicProductTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10-
<test name="AdminDeleteBundleDynamicProductTest">
10+
<test name="AdminDeleteBundleDynamicProductTest" deprecated="Use AdminDeleteBundleDynamicPriceProductTest instead">
1111
<annotations>
1212
<features value="Bundle"/>
1313
<stories value="Delete products"/>

0 commit comments

Comments
 (0)