Skip to content

Commit 0690647

Browse files
committed
Fix failure related to "seeProductCOnCategoryK" step
1 parent 60b761a commit 0690647

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

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

58-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
59-
<magentoCLI command="cache:flush" arguments="full_page" stepKey="flushCache"/>
58+
<magentoCron stepKey="runCronIndex" groups="index"/>
6059
</before>
6160
<after>
6261
<!-- Change "Category Products" and "Product Categories" indexers to "Update on Save" mode -->
@@ -138,9 +137,8 @@
138137
<amOnPage url="{{StorefrontCategoryPage.url($$categoryK.custom_attributes[url_key]$$/$$categoryN.custom_attributes[url_key]$$)}}" stepKey="amOnCategoryN"/>
139138
<see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="seeProductInCategoryN"/>
140139

141-
<!-- Run cron twice -->
142-
<magentoCLI command="cron:run" stepKey="runCron"/>
143-
<magentoCLI command="cron:run" stepKey="runCronAgain"/>
140+
<!-- Run cron -->
141+
<magentoCron stepKey="runMagentoCron" groups="index"/>
144142

145143
<!-- Open categories K, L, M, N on Storefront in order to make sure that new assigments are applied -->
146144
<!-- Category K contains only Products A, C -->
@@ -199,9 +197,8 @@
199197
<amOnPage url="{{StorefrontCategoryPage.url($$categoryK.custom_attributes[url_key]$$/$$categoryN.custom_attributes[url_key]$$)}}" stepKey="onStorefrontCategoryN"/>
200198
<see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="productCOnCategoryN"/>
201199

202-
<!-- Run cron twice -->
203-
<magentoCLI command="cron:run" stepKey="firstCronRun"/>
204-
<magentoCLI command="cron:run" stepKey="secondCronRun"/>
200+
<!-- Run Cron once to reindex product changes -->
201+
<magentoCron stepKey="runCronIndexAfterProductAssignToCategory" groups="index"/>
205202

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

0 commit comments

Comments
 (0)