|
55 | 55 | <argument name="categoryName" value="$$categoryN.name$$, $$categoryM.name$$"/>
|
56 | 56 | </actionGroup>
|
57 | 57 |
|
58 |
| - <magentoCLI command="indexer:reindex" stepKey="reindex"/> |
59 |
| - <magentoCLI command="cache:flush" arguments="full_page" stepKey="flushCache"/> |
| 58 | + <magentoCron stepKey="runCronIndex" groups="index"/> |
60 | 59 | </before>
|
61 | 60 | <after>
|
62 | 61 | <!-- Change "Category Products" and "Product Categories" indexers to "Update on Save" mode -->
|
|
138 | 137 | <amOnPage url="{{StorefrontCategoryPage.url($$categoryK.custom_attributes[url_key]$$/$$categoryN.custom_attributes[url_key]$$)}}" stepKey="amOnCategoryN"/>
|
139 | 138 | <see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="seeProductInCategoryN"/>
|
140 | 139 |
|
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"/> |
144 | 142 |
|
145 | 143 | <!-- Open categories K, L, M, N on Storefront in order to make sure that new assigments are applied -->
|
146 | 144 | <!-- Category K contains only Products A, C -->
|
|
199 | 197 | <amOnPage url="{{StorefrontCategoryPage.url($$categoryK.custom_attributes[url_key]$$/$$categoryN.custom_attributes[url_key]$$)}}" stepKey="onStorefrontCategoryN"/>
|
200 | 198 | <see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="productCOnCategoryN"/>
|
201 | 199 |
|
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"/> |
205 | 202 |
|
206 | 203 | <!-- Open categories K, L, M, N on Storefront in order to make sure that new assigments are applied -->
|
207 | 204 |
|
|
0 commit comments