|
41 | 41 | <actionGroup ref="SortProductsByIdDescendingActionGroup" stepKey="sortProductsByIdDescending"/>
|
42 | 42 |
|
43 | 43 | <!--Select products-->
|
44 |
| - <checkOption selector="{{AdminProductGridSection.productRowCheckboxBySku($$simpleProduct1.sku$$)}}" stepKey="selectFirstProduct"/> |
45 |
| - <checkOption selector="{{AdminProductGridSection.productRowCheckboxBySku($$simpleProduct2.sku$$)}}" stepKey="selectSecondProduct"/> |
| 44 | + <actionGroup ref="AdminCheckProductOnProductGridActionGroup" stepKey="selectFirstProduct"> |
| 45 | + <argument name="product" value="$simpleProduct1$"/> |
| 46 | + </actionGroup> |
| 47 | + <actionGroup ref="AdminCheckProductOnProductGridActionGroup" stepKey="selectSecondProduct"> |
| 48 | + <argument name="product" value="$simpleProduct2$"/> |
| 49 | + </actionGroup> |
46 | 50 |
|
47 | 51 | <!-- Update product price-->
|
48 |
| - <click selector="{{AdminProductGridSection.bulkActionDropdown}}" stepKey="clickDropdown"/> |
49 |
| - <click selector="{{AdminProductGridSection.bulkActionOption('Update attributes')}}" stepKey="clickChangeStatus"/> |
50 |
| - <waitForPageLoad stepKey="waitForProductAttributePageToLoad"/> |
51 |
| - <scrollTo stepKey="scrollToPriceCheckBox" selector="{{AdminEditProductAttributesSection.ChangeAttributePriceToggle}}" x="0" y="-160"/> |
52 |
| - <click selector="{{AdminEditProductAttributesSection.ChangeAttributePriceToggle}}" stepKey="selectPriceCheckBox"/> |
53 |
| - <fillField stepKey="fillPrice" selector="{{AdminEditProductAttributesSection.AttributePrice}}" userInput="90.99"/> |
54 |
| - <click stepKey="clickOnSaveButton" selector="{{AdminEditProductAttributesSection.Save}}"/> |
55 |
| - <waitForPageLoad stepKey="waitForUpdatedProductToSave" /> |
56 |
| - <see selector="{{AdminProductMessagesSection.successMessage}}" userInput="Message is added to queue" stepKey="seeAttributeUpateSuccessMsg"/> |
| 52 | + <actionGroup ref="AdminClickMassUpdateProductAttributesActionGroup" stepKey="clickDropdown"/> |
| 53 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickChangeStatus"/> |
| 54 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductAttributePageToLoad"/> |
| 55 | + |
| 56 | + <actionGroup ref="AdminSetPriceForMassUpdateActionGroup" stepKey="scrollToPriceCheckBox"> |
| 57 | + <argument name="price" value="90.99"/> |
| 58 | + </actionGroup> |
| 59 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectPriceCheckBox"/> |
| 60 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillPrice"/> |
| 61 | + |
| 62 | + <actionGroup ref="AdminSaveProductsMassAttributesUpdateActionGroup" stepKey="clickOnSaveButton"/> |
| 63 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForUpdatedProductToSave"/> |
| 64 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeAttributeUpateSuccessMsg"/> |
57 | 65 |
|
58 | 66 | <!-- Start message queue -->
|
59 | 67 | <actionGroup ref="CliConsumerStartActionGroup" stepKey="startMessageQueueConsumer">
|
|
64 | 72 | <magentoCLI command="cron:run --group=index" stepKey="runCron"/>
|
65 | 73 |
|
66 | 74 | <!--Verify product name, sku and updated price-->
|
67 |
| - <click stepKey="openFirstProduct" selector="{{AdminProductGridSection.productRowBySku($$simpleProduct1.sku$$)}}"/> |
| 75 | + <!-- <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToFirstProductEditPage"> |
| 76 | + <argument name="productId" value="$$simpleProduct1.id$$"/> |
| 77 | + </actionGroup> --> |
| 78 | + <actionGroup ref="AssertProductInfoOnEditPageActionGroup" stepKey="waitForFirstProductToLoad"> |
| 79 | + <argument name="product" value="$$simpleProduct1$$"/> |
| 80 | + </actionGroup> |
| 81 | + |
| 82 | + <!-- <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToSecondProductEditPage"> |
| 83 | + <argument name="productId" value="$$simpleProduct2.id$$"/> |
| 84 | + </actionGroup> --> |
| 85 | + <actionGroup ref="AssertProductInfoOnEditPageActionGroup" stepKey="waitForSecondProductToLoad"> |
| 86 | + <argument name="product" value="$$simpleProduct2$$"/> |
| 87 | + </actionGroup> |
| 88 | + |
| 89 | + <!-- <click stepKey="openFirstProduct" selector="{{AdminProductGridSection.productRowBySku($$simpleProduct1.sku$$)}}"/> |
68 | 90 | <waitForPageLoad stepKey="waitForFirstProductToLoad"/>
|
69 | 91 | <seeInField stepKey="seeFirstProductNameInField" selector="{{AdminProductFormSection.productName}}" userInput="$$simpleProduct1.name$$"/>
|
70 | 92 | <seeInField stepKey="seeFirstProductSkuInField" selector="{{AdminProductFormSection.productSku}}" userInput="$$simpleProduct1.sku$$"/>
|
|
75 | 97 | <waitForPageLoad stepKey="waitForSecondProductToLoad"/>
|
76 | 98 | <seeInField stepKey="seeSecondProductNameInField" selector="{{AdminProductFormSection.productName}}" userInput="$$simpleProduct2.name$$"/>
|
77 | 99 | <seeInField stepKey="seeSecondProductSkuInField" selector="{{AdminProductFormSection.productSku}}" userInput="$$simpleProduct2.sku$$"/>
|
78 |
| - <seeInField stepKey="seeSecondProductPriceInField" selector="{{AdminProductFormSection.productPrice}}" userInput="90.99"/> |
| 100 | + <seeInField stepKey="seeSecondProductPriceInField" selector="{{AdminProductFormSection.productPrice}}" userInput="90.99"/> --> |
79 | 101 | </test>
|
80 | 102 | </tests>
|
0 commit comments