Skip to content

Commit 1523372

Browse files
committed
MC-34987: [2.3] MFTF tests causing high load on Jenkins agents in MTSv1 platform
1 parent a943f77 commit 1523372

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@
5757
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpateSuccessMsg"/>
5858

5959
<!-- Start message queue -->
60-
<actionGroup ref="CliConsumerStartActionGroup" stepKey="startMessageQueueConsumer">
60+
<actionGroup ref="CliConsumerStartActionGroup" stepKey="runCron1">
6161
<argument name="consumerName" value="{{AdminProductAttributeUpdateConsumerData.consumerName}}"/>
6262
<argument name="maxMessages" value="{{AdminProductAttributeUpdateConsumerData.messageLimit}}"/>
6363
</actionGroup>
6464
<!-- Run cron -->
65-
<magentoCLI command="cron:run --group=index" stepKey="runCron"/>
65+
<magentoCLI command="cron:run --group=index" stepKey="runCron2"/>
66+
<reloadPage stepKey="refreshPage"/>
67+
<waitForPageLoad stepKey="waitFormToReload1"/>
6668

6769
<!--Verify product name, sku and updated price-->
6870
<click stepKey="openFirstProduct" selector="{{AdminProductGridSection.productRowBySku($$simpleProduct1.sku$$)}}"/>

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,14 @@
6565
<see selector="{{AdminMessagesSection.success}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/>
6666

6767
<!-- Start message queue for product attribute consumer -->
68-
<actionGroup ref="CliConsumerStartActionGroup" stepKey="startMessageQueue">
68+
<actionGroup ref="CliConsumerStartActionGroup" stepKey="runCron1">
6969
<argument name="consumerName" value="{{AdminProductAttributeUpdateMessageConsumerData.consumerName}}"/>
7070
<argument name="maxMessages" value="{{AdminProductAttributeUpdateMessageConsumerData.messageLimit}}"/>
7171
</actionGroup>
72+
<magentoCLI command="cron:run --group=index" stepKey="runCron2"/>
73+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
74+
<argument name="indices" value=""/>
75+
</actionGroup>
7276

7377
<!-- Assert on storefront default view -->
7478
<actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroupDefault"/>

0 commit comments

Comments
 (0)