Skip to content

Commit d221355

Browse files
committed
Rollback use of <magentoCron for now
1 parent 0690647 commit d221355

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
<argument name="categoryName" value="$$categoryN.name$$, $$categoryM.name$$"/>
5656
</actionGroup>
5757

58-
<magentoCron stepKey="runCronIndex" groups="index"/>
58+
<wait stepKey="waitBeforeRunCronIndex" time="30"/>
59+
<magentoCLI stepKey="runCronIndex" command="cron:run --group=index"/>
5960
</before>
6061
<after>
6162
<!-- Change "Category Products" and "Product Categories" indexers to "Update on Save" mode -->
@@ -138,7 +139,8 @@
138139
<see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="seeProductInCategoryN"/>
139140

140141
<!-- Run cron -->
141-
<magentoCron stepKey="runMagentoCron" groups="index"/>
142+
<wait stepKey="waitBeforeRunMagentoCron" time="30"/>
143+
<magentoCLI stepKey="runMagentoCron" command="cron:run --group=index"/>
142144

143145
<!-- Open categories K, L, M, N on Storefront in order to make sure that new assigments are applied -->
144146
<!-- Category K contains only Products A, C -->
@@ -198,7 +200,8 @@
198200
<see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="productCOnCategoryN"/>
199201

200202
<!-- Run Cron once to reindex product changes -->
201-
<magentoCron stepKey="runCronIndexAfterProductAssignToCategory" groups="index"/>
203+
<wait stepKey="waitBeforeRunCronIndexAfterProductAssignToCategory" time="30"/>
204+
<magentoCLI stepKey="runCronIndexAfterProductAssignToCategory" command="cron:run --group=index"/>
202205

203206
<!-- Open categories K, L, M, N on Storefront in order to make sure that new assigments are applied -->
204207

0 commit comments

Comments
 (0)