Skip to content

Commit 6eeb21d

Browse files
Merge branch 'stability_control' into ACQE-5132
2 parents a6bcdf9 + f7efed6 commit 6eeb21d

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

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

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,24 @@
2424
<createData entity="_defaultCategory" stepKey="createAnchoredCategory1"/>
2525
<createData entity="_defaultCategory" stepKey="createSecondCategory"/>
2626

27-
<!-- Switch "Category Product" and "Product Category" indexers to "Update by Schedule" mode -->
28-
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="onIndexManagement"/>
29-
30-
<actionGroup ref="AdminSwitchIndexerToActionModeActionGroup" stepKey="switchCategoryProduct">
31-
<argument name="indexerValue" value="catalog_category_product"/>
32-
</actionGroup>
33-
<actionGroup ref="AdminSwitchIndexerToActionModeActionGroup" stepKey="switchProductCategory">
34-
<argument name="indexerValue" value="catalog_product_category"/>
35-
</actionGroup>
36-
<actionGroup ref="AdminSwitchIndexerToActionModeActionGroup" stepKey="switchCatalogSearch">
37-
<argument name="indexerValue" value="catalogsearch_fulltext"/>
27+
<comment userInput="BIC workaround" stepKey="onIndexManagement"/>
28+
<comment userInput="BIC workaround" stepKey="switchCategoryProduct"/>
29+
<comment userInput="BIC workaround" stepKey="switchProductCategory"/>
30+
<comment userInput="BIC workaround" stepKey="switchCatalogSearch"/>
31+
32+
<!-- Switch "Category Product", "Product Category" and "Catalog Search" indexers to "Update by Schedule" mode -->
33+
<actionGroup ref="CliIndexerSetScheduleModeActionGroup" stepKey="setScheduleIndexerMode">
34+
<argument name="indices" value="catalog_category_product catalog_product_category catalogsearch_fulltext"/>
3835
</actionGroup>
3936
</before>
4037

4138
<after>
42-
<!-- Switch "Category Product" and "Product Category" indexers to "Update by Save" mode -->
43-
<actionGroup ref="AdminOpenIndexManagementPageActionGroup" stepKey="onIndexManagement"/>
44-
45-
<actionGroup ref="AdminSwitchIndexerToActionModeActionGroup" stepKey="switchCategoryProduct">
46-
<argument name="indexerValue" value="catalog_category_product"/>
47-
<argument name="action" value="Update on Save"/>
48-
</actionGroup>
49-
<actionGroup ref="AdminSwitchIndexerToActionModeActionGroup" stepKey="switchProductCategory">
50-
<argument name="indexerValue" value="catalog_product_category"/>
51-
<argument name="action" value="Update on Save"/>
39+
<comment userInput="BIC workaround" stepKey="onIndexManagement"/>
40+
<comment userInput="BIC workaround" stepKey="switchCategoryProduct"/>
41+
<comment userInput="BIC workaround" stepKey="switchProductCategory"/>
42+
<!-- Switch "Category Product", "Product Category" and "Catalog Search" indexers to "Update by Save" mode -->
43+
<actionGroup ref="CliIndexerSetRealtimeModeActionGroup" stepKey="setRealtimeIndexerMode">
44+
<argument name="indices" value="catalog_category_product catalog_product_category catalogsearch_fulltext"/>
5245
</actionGroup>
5346

5447
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>

app/code/Magento/Indexer/Test/Mftf/ActionGroup/CliIndexerSetRealtimeModeActionGroup.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
<annotations>
1212
<description>Set indexers to realtime mode.</description>
1313
</annotations>
14+
<arguments>
15+
<argument name="indices" type="string"/>
16+
</arguments>
1417

15-
<magentoCLI command="indexer:set-mode" arguments="realtime" stepKey="setRealtimeIndexerMode"/>
18+
<magentoCLI command="indexer:set-mode" arguments="realtime {{indices}}" stepKey="setRealtimeIndexerMode"/>
1619
</actionGroup>
1720
</actionGroups>

app/code/Magento/Indexer/Test/Mftf/ActionGroup/CliIndexerSetScheduleModeActionGroup.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
<annotations>
1212
<description>Set indexers to schedule mode.</description>
1313
</annotations>
14+
<arguments>
15+
<argument name="indices" type="string"/>
16+
</arguments>
1417

15-
<magentoCLI command="indexer:set-mode" arguments="schedule" stepKey="setScheduleIndexerMode"/>
18+
<magentoCLI command="indexer:set-mode" arguments="schedule {{indices}}" stepKey="setScheduleIndexerMode"/>
1619
</actionGroup>
1720
</actionGroups>

0 commit comments

Comments
 (0)