File tree Expand file tree Collapse file tree 5 files changed +35
-16
lines changed
CatalogRule/Test/Mftf/Test
CatalogUrlRewrite/Test/Mftf/Test Expand file tree Collapse file tree 5 files changed +35
-16
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 56
56
<waitForPageLoad stepKey =" waitForUpdatedProductToSave" />
57
57
<see selector =" {{AdminProductMessagesSection.successMessage}}" userInput =" Message is added to queue" stepKey =" seeAttributeUpateSuccessMsg" />
58
58
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" />
64
65
65
66
<!-- Verify product name, sku and updated price-->
66
67
<click stepKey =" openFirstProduct" selector =" {{AdminProductGridSection.productRowBySku($$simpleProduct1.sku$$)}}" />
Original file line number Diff line number Diff line change 116
116
<see userInput =" You saved the product." selector =" {{CatalogProductsSection.messageSuccessSavedProduct}}" stepKey =" seeSuccessMessage" />
117
117
118
118
<!-- Run cron -->
119
- <magentoCLI command =" cron:run" stepKey =" runCron" />
119
+ <magentoCLI command =" cron:run --group=index " stepKey =" runCron" />
120
120
121
121
<!-- Clear invalidated cache on System>Tools>Cache Management page -->
122
122
<amOnPage url =" {{AdminCacheManagementPage.url}}" stepKey =" onCachePage" />
188
188
<see userInput =" You saved the product." selector =" {{CatalogProductsSection.messageSuccessSavedProduct}}" stepKey =" seeSaveMessage" />
189
189
190
190
<!-- Run cron -->
191
- <magentoCLI command =" cron:run" stepKey =" runCron2" />
191
+ <magentoCLI command =" cron:run --group=index " stepKey =" runCron2" />
192
192
193
193
<!-- Open frontend -->
194
194
<actionGroup ref =" StorefrontOpenHomePageActionGroup" stepKey =" onFrontendPage" />
Original file line number Diff line number Diff line change 44
44
<createData entity =" productDropDownAttribute" stepKey =" createSecondProductAttribute" >
45
45
<field key =" scope" >website</field >
46
46
</createData >
47
- <magentoCron stepKey = " runCronIndex " groups = " index " />
47
+ <magentoCLI command = " cron:run --group=index " stepKey = " runCron " />
48
48
</before >
49
49
<after >
50
50
64
64
<deleteData createDataKey =" createSecondProductAttribute" stepKey =" deleteSecondProductAttribute" />
65
65
66
66
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
67
- <magentoCron stepKey = " runCronIndex " groups = " index " />
67
+ <magentoCLI command = " cron:run --group=index " stepKey = " runCron " />
68
68
</after >
69
69
70
70
<!-- Create catalog price rule-->
80
80
<argument name =" targetSelectValue" value =" is undefined" />
81
81
</actionGroup >
82
82
<click selector =" {{AdminNewCatalogPriceRule.saveAndApply}}" stepKey =" clickSaveAndApplyRules" />
83
- <wait time =" 60" stepKey =" waitMinute" />
84
83
<magentoCLI command =" indexer:reindex" stepKey =" reindex" />
85
84
<magentoCLI command =" cache:flush" stepKey =" flushCache" />
86
85
<magentoCLI command =" cache:flush" stepKey =" flushCache3" />
129
128
<argument name =" targetSelectValue" value =" is undefined" />
130
129
</actionGroup >
131
130
<click selector =" {{AdminNewCatalogPriceRule.saveAndApply}}" stepKey =" clickSaveAndApplyRules1" />
132
- <wait time =" 60" stepKey =" waitForMinute" />
133
131
<magentoCLI command =" indexer:reindex" stepKey =" reindex1" />
134
132
<magentoCLI command =" cache:flush" stepKey =" flushCache1" />
135
133
<magentoCLI command =" cache:flush" stepKey =" flushCache2" />
Original file line number Diff line number Diff line change 72
72
<click selector =" {{AdminUpdateAttributesSection.saveButton}}" stepKey =" clickSave" />
73
73
<see selector =" {{AdminProductMessagesSection.successMessage}}" userInput =" Message is added to queue" stepKey =" seeSaveSuccess" />
74
74
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" />
80
81
81
82
<!-- Got to Store front product page and check url-->
82
83
<amOnPage url =" {{StorefrontProductPage.url($$createProduct.sku$$-new)}}" stepKey =" navigateToSimpleProductPage" />
You can’t perform that action at this time.
0 commit comments