|
30 | 30 | <createData entity="ApiSimpleProduct" stepKey="createProductTwo">
|
31 | 31 | <requiredEntity createDataKey="createCategory"/>
|
32 | 32 | </createData>
|
| 33 | + <magentoCron groups="index" stepKey="reindexInvalidatedIndices"/> |
33 | 34 | </before>
|
34 | 35 | <after>
|
35 | 36 | <deleteData createDataKey="createProductOne" stepKey="deleteProductOne"/>
|
|
39 | 40 | <click selector="{{AdminStoresGridSection.resetButton}}" stepKey="resetSearchFilter"/>
|
40 | 41 | <actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductFilter"/>
|
41 | 42 | <actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/>
|
| 43 | + <magentoCron groups="index" stepKey="reindexInvalidatedIndicesAfterDelete"/> |
42 | 44 | </after>
|
43 | 45 |
|
44 | 46 | <!-- Search and select products -->
|
|
59 | 61 | <actionGroup ref="AdminSwitchStoreViewActionGroup" stepKey="AdminSwitchStoreViewActionGroup"/>
|
60 | 62 | <!-- Update attribute -->
|
61 | 63 | <checkOption selector="{{AdminEditProductAttributesSection.ChangeAttributePriceToggle}}" stepKey="toggleToChangePrice"/>
|
62 |
| - <fillField selector="{{AdminEditProductAttributesSection.AttributePrice}}" userInput="$$createProductOne.price$$0" stepKey="fillAttributeNameField"/> |
| 64 | + <fillField selector="{{AdminEditProductAttributesSection.AttributePrice}}" userInput="$createProductOne.price$0" stepKey="fillAttributeNameField"/> |
63 | 65 | <click selector="{{AdminEditProductAttributesSection.Save}}" stepKey="save"/>
|
64 | 66 | <waitForElementVisible selector="{{AdminMessagesSection.success}}" time="60" stepKey="waitForSuccessMessage"/>
|
65 | 67 | <see selector="{{AdminMessagesSection.success}}" userInput="Message is added to queue" stepKey="seeAttributeUpdateSuccessMsg"/>
|
66 | 68 |
|
67 |
| - <!-- Run cron twice --> |
68 |
| - <magentoCLI command="cron:run" arguments="--group=consumers" stepKey="runCron1"/> |
69 |
| - <magentoCLI command="cron:run" arguments="--group=consumers" stepKey="runCron2"/> |
70 |
| - <magentoCLI command="indexer:reindex" stepKey="reindex"/> |
| 69 | + <!-- Start message queue for product attribute consumer --> |
| 70 | + <actionGroup ref="AdminStartMessageQueueConsumerActionGroup" stepKey="startMessageQueue"> |
| 71 | + <argument name="consumer" value="AdminProductAttributeUpdateMessageConsumerData"/> |
| 72 | + </actionGroup> |
71 | 73 |
|
72 | 74 | <!-- Assert on storefront default view -->
|
73 | 75 | <actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroupDefault"/>
|
74 | 76 | <actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameAndPriceActionGroup" stepKey="searchByNameDefault">
|
75 |
| - <argument name="name" value=""$$createProductOne.name$$""/> |
76 |
| - <argument name="priceFrom" value="$$createProductOne.price$$0"/> |
77 |
| - <argument name="priceTo" value="$$createProductOne.price$$0"/> |
| 77 | + <argument name="name" value=""$createProductOne.name$""/> |
| 78 | + <argument name="priceFrom" value="$createProductOne.price$0"/> |
| 79 | + <argument name="priceTo" value="$createProductOne.price$0"/> |
78 | 80 | </actionGroup>
|
79 | 81 | <actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResultDefault"/>
|
80 | 82 | <waitForElementVisible selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="waitForSearchResultInDefaultView"/>
|
|
84 | 86 | <actionGroup ref="GoToStoreViewAdvancedCatalogSearchActionGroup" stepKey="GoToStoreViewAdvancedCatalogSearchActionGroupCustom"/>
|
85 | 87 | <actionGroup ref="StorefrontSwitchStoreViewActionGroup" stepKey="StorefrontSwitchStoreViewActionGroup"/>
|
86 | 88 | <actionGroup ref="StorefrontAdvancedCatalogSearchByProductNameAndPriceActionGroup" stepKey="searchByNameCustom">
|
87 |
| - <argument name="name" value=""$$createProductOne.name$$""/> |
88 |
| - <argument name="priceFrom" value="$$createProductOne.price$$0"/> |
89 |
| - <argument name="priceTo" value="$$createProductOne.price$$0"/> |
| 89 | + <argument name="name" value=""$createProductOne.name$""/> |
| 90 | + <argument name="priceFrom" value="$createProductOne.price$0"/> |
| 91 | + <argument name="priceTo" value="$createProductOne.price$0"/> |
90 | 92 | </actionGroup>
|
91 | 93 | <actionGroup ref="StorefrontCheckAdvancedSearchResultActionGroup" stepKey="StorefrontCheckAdvancedSearchResultCustom"/>
|
92 | 94 | <waitForElementVisible selector="{{StorefrontCatalogSearchAdvancedResultMainSection.itemFound}}" stepKey="waitForSearchResultInCustomView"/>
|
|
0 commit comments