Skip to content

Commit 5ecf1fa

Browse files
committed
ACQE-5351: [MFTF PR TESTS] Replace magentoCli Commands for Cron with magentoCron
- Replacing mftf magentocli cron:run commands with magentocron commands
1 parent e20e64e commit 5ecf1fa

File tree

44 files changed

+154
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+154
-69
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<argument name="consumerName" value="{{AdminProductAttributeUpdateConsumerData.consumerName}}"/>
4848
<argument name="maxMessages" value="{{AdminProductAttributeUpdateConsumerData.messageLimit}}"/>
4949
</actionGroup>
50-
<magentoCLI command="cron:run" stepKey="runCron"/>
50+
<magentoCron stepKey="runCron"/>
5151

5252
<actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProductForEdit"/>
5353

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
<argument name="expectedText" value="$$simpleProduct1.name$$"/>
8080
</actionGroup>
8181

82-
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
82+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCronIndexer">
83+
<argument name="indices" value=""/>
84+
</actionGroup>
8385

8486
<!--See related product in storefront-->
8587
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="goToStorefront">

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
<requiredEntity createDataKey="createBundleOption"/>
3535
<requiredEntity createDataKey="createSimpleProduct"/>
3636
</createData>
37-
<magentoCLI stepKey="runCronIndex" command="cron:run --group=index"/>
37+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCronIndex">
38+
<argument name="indices" value=""/>
39+
</actionGroup>
3840
</before>
3941
<after>
4042
<!-- Delete Simple Product -->

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
</actionGroup>
4949
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutAsAdmin"/>
5050

51-
<magentoCLI stepKey="runCronIndex" command="cron:run --group=index"/>
51+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCronIndex">
52+
<argument name="indices" value=""/>
53+
</actionGroup>
5254
</before>
5355
<after>
5456
<deleteData createDataKey="createBundleProductCreateBundleProduct" stepKey="deleteDynamicBundleProduct"/>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@
9494
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
9595

9696
<wait stepKey="waitBeforeIndexerAfterBundle" time="60"/>
97-
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexerAfterBundle"/>
97+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCronIndexerAfterBundle">
98+
<argument name="indices" value=""/>
99+
</actionGroup>
98100

99101
<amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/>
100102
<waitForPageLoad stepKey="waitForStorefront"/>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373
<click stepKey="saveProductBundle" selector="{{AdminProductFormActionSection.saveButton}}"/>
7474
<see stepKey="assertSuccess" selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."/>
7575

76-
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
76+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCronIndexer">
77+
<argument name="indices" value=""/>
78+
</actionGroup>
7779

7880
<!-- Go to the storefront bundled product page -->
7981
<amOnPage url="/{{BundleProduct.urlKey}}.html" stepKey="visitStoreFrontBundle"/>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@
7272
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
7373

7474
<wait stepKey="waitBeforeIndexerAfterBundle" time="60"/>
75-
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexerAfterBundle"/>
75+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCronIndexerAfterBundle">
76+
<argument name="indices" value=""/>
77+
</actionGroup>
7678

7779
<amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/>
7880
<waitForPageLoad stepKey="waitForStorefront"/>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
</createData>
8181

8282
<!-- Assert first product in category -->
83-
<magentoCLI command="cron:run" stepKey="runCron"/>
83+
<magentoCron stepKey="runCron"/>
8484
<amOnPage url="{{StorefrontCategoryPage.url($$firstSimpleCategory.custom_attributes[url_key]$$)}}" stepKey="goToFirstCategoryPageStorefront"/>
8585
<waitForPageLoad stepKey="waitForFirstCategoryPageLoad"/>
8686

@@ -105,7 +105,7 @@
105105
<see selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/>
106106

107107
<!-- Assert first product in category -->
108-
<magentoCLI command="cron:run" stepKey="runCron1"/>
108+
<magentoCron stepKey="runCron1"/>
109109
<wait time="60" stepKey="waitForUpdateStarts"/>
110110

111111
<amOnPage url="{{StorefrontCategoryPage.url($$firstSimpleCategory.custom_attributes[url_key]$$)}}" stepKey="goToFirstCategoryPageStorefront1"/>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
<argument name="category" value="$$createPreReqCategory$$"/>
3636
<argument name="simpleProduct" value="_defaultProduct"/>
3737
</actionGroup>
38-
<magentoCLI stepKey="runCronIndex" command="cron:run --group=index"/>
38+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCronIndex">
39+
<argument name="indices" value=""/>
40+
</actionGroup>
3941
<actionGroup ref="AssertProductInStorefrontCategoryPage" stepKey="assertProductInStorefront1">
4042
<argument name="category" value="$$createPreReqCategory$$"/>
4143
<argument name="product" value="_defaultProduct"/>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
<argument name="maxMessages" value="{{AdminProductAttributeUpdateConsumerData.messageLimit}}"/>
6363
</actionGroup>
6464

65-
<magentoCLI command="cron:run --group=index" stepKey="runCron"/>
65+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="runCron">
66+
<argument name="indices" value=""/>
67+
</actionGroup>
6668

6769
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openFirstProduct"/>
6870
<actionGroup ref="AssertAdminProductPriceUpdatedOnEditPageActionGroup" stepKey="waitForFirstProductToLoad">

0 commit comments

Comments
 (0)