Skip to content

Commit 5b7af4b

Browse files
authored
ENGCOM-7250: MFTF: Add <magentoCron instruction - Magento_Bundle #27321
2 parents a045769 + 84395bc commit 5b7af4b

31 files changed

+33
-4
lines changed

app/code/Magento/Bundle/Test/Mftf/ActionGroup/AdminCreateApiDynamicBundleProductActionGroup.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,7 @@
6161
<requiredEntity createDataKey="createBundleOption1_2"/>
6262
<requiredEntity createDataKey="simpleProduct4"/>
6363
</createData>
64+
65+
<magentoCron stepKey="runCronIndex" groups="index"/>
6466
</actionGroup>
6567
</actionGroups>

app/code/Magento/Bundle/Test/Mftf/ActionGroup/AdminCreateApiDynamicBundleProductAllOptionTypesActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@
7070
<requiredEntity createDataKey="createBundleRadioButtonsOption"/>
7171
<requiredEntity createDataKey="simpleProduct2"/>
7272
</createData>
73+
<magentoCron stepKey="runCronIndex" groups="index"/>
7374
</actionGroup>
7475
</actionGroups>

app/code/Magento/Bundle/Test/Mftf/ActionGroup/AdminCreateApiFixedBundleProductActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@
6161
<requiredEntity createDataKey="createBundleOption1_2"/>
6262
<requiredEntity createDataKey="simpleProduct4"/>
6363
</createData>
64+
<magentoCron stepKey="runCronIndex" groups="index"/>
6465
</actionGroup>
6566
</actionGroups>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2626
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
2727
<createData entity="SimpleProduct2" stepKey="simpleProduct3"/>
28+
<magentoCron stepKey="runCronIndex" groups="index"/>
2829
<!--Admin login-->
2930
<actionGroup stepKey="loginToAdminPanel" ref="AdminLoginActionGroup"/>
3031
</before>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
<requiredEntity createDataKey="bundleOption"/>
5151
<requiredEntity createDataKey="createSimpleProduct2"/>
5252
</createData>
53+
<magentoCron stepKey="runCronIndex" groups="index"/>
54+
5355
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductEditPage">
5456
<argument name="productId" value="$$createProduct.id$$"/>
5557
</actionGroup>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
25+
<magentoCron stepKey="runCronIndex" groups="index"/>
2526
</before>
2627
<after>
2728
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<before>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2626
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
27+
<magentoCron stepKey="runCronIndex" groups="index"/>
2728
</before>
2829
<after>
2930
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
25+
<magentoCron stepKey="runCronIndex" groups="index"/>
2526
</before>
2627
<after>
2728
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<createData entity="ApiBundleProductPriceViewRange" stepKey="createDynamicBundleProduct">
2727
<requiredEntity createDataKey="createCategory"/>
2828
</createData>
29+
<magentoCron stepKey="runCronIndex" groups="index"/>
2930
</before>
3031
<after>
3132
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<createData entity="FixedBundleProduct" stepKey="createFixedBundleProduct">
2424
<requiredEntity createDataKey="createCategory"/>
2525
</createData>
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2627
</before>
2728
<after>
2829
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct0"/>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2627
</before>
2728
<after>
2829
<!-- Delete the bundled product -->

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
25+
<magentoCron stepKey="runCronIndex" groups="index"/>
2526
</before>
2627
<after>
2728
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct3"/>
2626
<createData entity="SimpleProduct2" stepKey="simpleProduct4"/>
27+
<magentoCron stepKey="runCronIndex" groups="index"/>
2728
</before>
2829
<after>
2930
<!--Clear Filters-->

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
26-
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2727
<!-- Admin Login-->
2828
<actionGroup stepKey="loginToAdminPanel" ref="AdminLoginActionGroup"/>
2929
</before>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
25+
<magentoCron stepKey="runCronIndex" groups="index"/>
2526
</before>
2627
<after>
2728
<!-- Delete the bundled product we created in the test body -->

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<before>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2626
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
27+
<magentoCron stepKey="runCronIndex" groups="index"/>
2728
</before>
2829
<after>
2930
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<requiredEntity createDataKey="createBundleOption"/>
3535
<requiredEntity createDataKey="createSimpleProduct"/>
3636
</createData>
37+
<magentoCron stepKey="runCronIndex" groups="index"/>
3738
</before>
3839
<after>
3940
<!-- Delete Simple Product -->

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
26-
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2727
<!--Admin login-->
2828
<actionGroup stepKey="loginToAdminPanel" ref="AdminLoginActionGroup"/>
2929
</before>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<before>
2121
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2222
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
23+
<magentoCron stepKey="runCronIndex" groups="index"/>
2324
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2425
</before>
2526
<after>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2222
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
24+
<magentoCron stepKey="runCronIndex" groups="index"/>
2425
</before>
2526
<after>
2627
<!-- Delete the bundled product -->

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2627

2728
<!--Admin login-->
2829
<actionGroup stepKey="loginToAdminPanel" ref="AdminLoginActionGroup"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct3"/>
2626
<createData entity="SimpleProduct2" stepKey="simpleProduct4"/>
27+
<magentoCron stepKey="runCronIndex" groups="index"/>
2728
</before>
2829
<after>
2930
<!--Clear Filters-->

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<before>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2627
</before>
2728

2829
<after>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<createData entity="SimpleProduct2" stepKey="simpleProduct8"/>
3131
<createData entity="SimpleProduct2" stepKey="simpleProduct9"/>
3232
<createData entity="SimpleProduct2" stepKey="simpleProduct10"/>
33+
<magentoCron stepKey="runCronIndex" groups="index"/>
3334
</before>
3435
<after>
3536
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
25+
<magentoCron stepKey="runCronIndex" groups="index"/>
2526
</before>
2627
<after>
2728
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
25+
<magentoCron stepKey="runCronIndex" groups="index"/>
2526
</before>
2627
<after>
2728
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<createData entity="_defaultCategory" stepKey="createPreReqCategory"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
26-
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2727
<!-- Admin Login-->
2828
<actionGroup stepKey="loginToAdminPanel" ref="AdminLoginActionGroup"/>
2929
<actionGroup ref="DisabledWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
2626
<createData entity="SimpleProduct2" stepKey="simpleProduct3"/>
2727
<createData entity="SimpleProduct2" stepKey="simpleProduct4"/>
28+
<magentoCron stepKey="runCronIndex" groups="index"/>
2829
</before>
2930
<after>
3031
<!--Logging out-->

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
2525

26-
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2727
</before>
2828
<after>
2929
<!-- Delete the bundled product -->

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
25+
<magentoCron stepKey="runCronIndex" groups="index"/>
2526
</before>
2627
<after>
2728
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
2525
<createData entity="_defaultCategory" stepKey="createCategory"/>
26+
<magentoCron stepKey="runCronIndex" groups="index"/>
2627
</before>
2728
<after>
2829
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>

0 commit comments

Comments
 (0)