Skip to content

Commit 1896622

Browse files
committed
MC-34482: MFTF tests causing high load
1 parent e15ff8f commit 1896622

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductUpdateTest/AdminConfigurableProductBulkUpdateTest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
<waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" time="60" stepKey="waitForSuccessMessage"/>
6666
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/>
6767

68-
<!-- Run cron twice -->
69-
<magentoCLI command="cron:run" arguments="--group=consumers" stepKey="runCron1"/>
70-
<magentoCLI command="cron:run" arguments="--group=consumers" stepKey="runCron2"/>
71-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
68+
<!-- Apply changes -->
69+
<actionGroup ref="AdminStartMessageQueueConsumerActionGroup" stepKey="startMessageQueue">
70+
<argument name="consumer" value="AdminProductAttributeUpdateMessageConsumerData"/>
71+
</actionGroup>
7272

7373
<!-- Check storefront for description -->
7474
<amOnPage url="{{StorefrontProductPage.url($$createProduct1.custom_attributes[url_key]$$)}}" stepKey="goToFirstProductPageOnStorefront"/>

app/code/Magento/SalesRule/Test/Mftf/Test/AdminCreateCartPriceRuleForGeneratedCouponTest.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@
5555
<click selector="{{AdminCartPriceRulesFormSection.generateCouponsButton}}" stepKey="clickGenerate"/>
5656
<see selector="{{AdminCartPriceRulesFormSection.successMessage}}" userInput="Message is added to queue, wait to get your coupons soon" stepKey="seeGenerationSuccess"/>
5757

58-
<!-- Run cron twice -->
59-
<magentoCLI command="cron:run" stepKey="runCron1"/>
60-
<magentoCLI command="cron:run" stepKey="runCron2"/>
58+
<!-- Apply changes -->
59+
<actionGroup ref="AdminStartMessageQueueConsumerActionGroup" stepKey="startMessageQueue">
60+
<argument name="consumer" value="AdminCodeGeneratorMessageConsumerData"/>
61+
</actionGroup>
6162
<reloadPage stepKey="refreshPage"/>
6263
<waitForPageLoad stepKey="waitFormToReload1"/>
6364
<click selector="{{AdminCartPriceRulesFormSection.manageCouponCodesHeader}}" stepKey="expandCouponSection2"/>

0 commit comments

Comments
 (0)