Skip to content

Commit 5f26535

Browse files
committed
Merge remote-tracking branch 'origin/MC-34482-Sevch' into MC-34482
2 parents ffb008a + f208612 commit 5f26535

File tree

5 files changed

+35
-16
lines changed

5 files changed

+35
-16
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="AdminProductAttributeUpdateConsumerData">
12+
<data key="consumer_name">product_action_attribute.update</data>
13+
<data key="message_limit">100</data>
14+
</entity>
15+
<entity name="AdminProductAttributeWebsiteUpdateConsumerData">
16+
<data key="consumer_name">product_action_attribute.website.update</data>
17+
<data key="message_limit">100</data>
18+
</entity>
19+
</entities>

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@
5656
<waitForPageLoad stepKey="waitForUpdatedProductToSave" />
5757
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpateSuccessMsg"/>
5858

59-
<!-- Run cron twice -->
60-
<magentoCLI command="cron:run" stepKey="runCron1"/>
61-
<magentoCLI command="cron:run" stepKey="runCron2"/>
62-
<reloadPage stepKey="refreshPage"/>
63-
<waitForPageLoad stepKey="waitFormToReload1"/>
59+
<!-- Start message queue -->
60+
<actionGroup ref="AdminStartMessageQueueConsumerActionGroup" stepKey="startMessageQueueConsumer">
61+
<argument name="consumer" value="AdminProductAttributeUpdateConsumerData"/>
62+
</actionGroup>
63+
<!-- Run cron -->
64+
<magentoCLI command="cron:run --group=index" stepKey="runCron"/>
6465

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<see userInput="You saved the product." selector="{{CatalogProductsSection.messageSuccessSavedProduct}}" stepKey="seeSuccessMessage"/>
117117

118118
<!-- Run cron -->
119-
<magentoCLI command="cron:run" stepKey="runCron"/>
119+
<magentoCLI command="cron:run --group=index" stepKey="runCron"/>
120120

121121
<!-- Clear invalidated cache on System>Tools>Cache Management page -->
122122
<amOnPage url="{{AdminCacheManagementPage.url}}" stepKey="onCachePage"/>
@@ -188,7 +188,7 @@
188188
<see userInput="You saved the product." selector="{{CatalogProductsSection.messageSuccessSavedProduct}}" stepKey="seeSaveMessage"/>
189189

190190
<!-- Run cron -->
191-
<magentoCLI command="cron:run" stepKey="runCron2"/>
191+
<magentoCLI command="cron:run --group=index" stepKey="runCron2"/>
192192

193193
<!-- Open frontend -->
194194
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="onFrontendPage"/>

app/code/Magento/CatalogRule/Test/Mftf/Test/AdminEnableAttributeIsUndefinedCatalogPriceRuleTest.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<createData entity="productDropDownAttribute" stepKey="createSecondProductAttribute">
4545
<field key="scope">website</field>
4646
</createData>
47-
<magentoCron stepKey="runCronIndex" groups="index"/>
47+
<magentoCLI command="cron:run --group=index" stepKey="runCron"/>
4848
</before>
4949
<after>
5050

@@ -64,7 +64,7 @@
6464
<deleteData createDataKey="createSecondProductAttribute" stepKey="deleteSecondProductAttribute"/>
6565

6666
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
67-
<magentoCron stepKey="runCronIndex" groups="index"/>
67+
<magentoCLI command="cron:run --group=index" stepKey="runCron"/>
6868
</after>
6969

7070
<!--Create catalog price rule-->
@@ -80,7 +80,6 @@
8080
<argument name="targetSelectValue" value="is undefined"/>
8181
</actionGroup>
8282
<click selector="{{AdminNewCatalogPriceRule.saveAndApply}}" stepKey="clickSaveAndApplyRules"/>
83-
<wait time="60" stepKey="waitMinute"/>
8483
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
8584
<magentoCLI command="cache:flush" stepKey="flushCache"/>
8685
<magentoCLI command="cache:flush" stepKey="flushCache3"/>
@@ -129,7 +128,6 @@
129128
<argument name="targetSelectValue" value="is undefined"/>
130129
</actionGroup>
131130
<click selector="{{AdminNewCatalogPriceRule.saveAndApply}}" stepKey="clickSaveAndApplyRules1"/>
132-
<wait time="60" stepKey="waitForMinute"/>
133131
<magentoCLI command="indexer:reindex" stepKey="reindex1"/>
134132
<magentoCLI command="cache:flush" stepKey="flushCache1"/>
135133
<magentoCLI command="cache:flush" stepKey="flushCache2"/>

app/code/Magento/CatalogUrlRewrite/Test/Mftf/Test/AdminUrlForProductRewrittenCorrectlyTest.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@
7272
<click selector="{{AdminUpdateAttributesSection.saveButton}}" stepKey="clickSave"/>
7373
<see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeSaveSuccess"/>
7474

75-
<!-- Run cron twice -->
76-
<magentoCLI command="cron:run" stepKey="runCron1"/>
77-
<magentoCLI command="cron:run" stepKey="runCron2"/>
78-
<reloadPage stepKey="refreshPage"/>
79-
<waitForPageLoad stepKey="waitFormToReload1"/>
75+
<!-- Start message queue -->
76+
<actionGroup ref="AdminStartMessageQueueConsumerActionGroup" stepKey="startMessageQueueConsumer">
77+
<argument name="consumer" value="AdminProductAttributeWebsiteUpdateConsumerData"/>
78+
</actionGroup>
79+
<!-- Run cron -->
80+
<magentoCLI command="cron:run --group=index" stepKey="runCron"/>
8081

8182
<!--Got to Store front product page and check url-->
8283
<amOnPage url="{{StorefrontProductPage.url($$createProduct.sku$$-new)}}" stepKey="navigateToSimpleProductPage"/>

0 commit comments

Comments
 (0)