Skip to content

Commit 2766c10

Browse files
authored
ENGCOM-7735: [MFTF] Remove redundant cron run #28852
2 parents f74a2f0 + 0e3e26f commit 2766c10

5 files changed

+10
-15
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@
3737
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
3838
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
3939
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
40-
<!-- Run cron twice -->
41-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron1"/>
42-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron2"/>
40+
<!-- Run cron -->
41+
<magentoCron stepKey="runIndexCronJobs" groups="index"/>
4342
</before>
4443
<after>
4544
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@
3737
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
3838
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
3939
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
40-
<!-- Run cron twice -->
41-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron1"/>
42-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron2"/>
40+
<!-- Run cron -->
41+
<magentoCron stepKey="runIndexCronJobs" groups="index"/>
4342
</before>
4443
<after>
4544
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@
3737
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
3838
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
3939
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
40-
<!-- Run cron twice -->
41-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron1"/>
42-
<magentoCLI command="cron:run" arguments="--group=index" stepKey="runCron2"/>
40+
<!-- Run cron -->
41+
<magentoCron stepKey="runIndexCronJobs" groups="index"/>
4342
</before>
4443
<after>
4544
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@
3838
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
3939
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
4040
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
41-
<!-- Run cron twice -->
42-
<magentoCLI command="cron:run" stepKey="runCron1"/>
43-
<magentoCLI command="cron:run" stepKey="runCron2"/>
41+
<!-- Run cron -->
42+
<magentoCron stepKey="runAllCronJobs"/>
4443
</before>
4544
<after>
4645
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>

app/code/Magento/CatalogRule/Test/Mftf/Test/ApplyCatalogPriceRuleByProductAttributeTest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,8 @@
232232
<see userInput="You saved the rule." selector="{{ContentManagementSection.StoreConfigurationPageSuccessMessage}}" stepKey="seeMessage"/>
233233
<see userInput="Updated rules applied." selector="{{ContentManagementSection.StoreConfigurationPageSuccessMessage}}" stepKey="seeSuccessMessage"/>
234234

235-
<!-- Run cron twice -->
236-
<magentoCLI command="cron:run" stepKey="runCron1"/>
237-
<magentoCLI command="cron:run" stepKey="runCron2"/>
235+
<!-- Run cron -->
236+
<magentoCron stepKey="runAllCronJobs"/>
238237
<magentoCLI command="cache:flush" stepKey="flushCache"/>
239238

240239
<!-- Go to Frontend and open the simple product -->

0 commit comments

Comments
 (0)