|
25 | 25 | </before>
|
26 | 26 | <after>
|
27 | 27 | <deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
|
28 |
| - <deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/> |
| 28 | + <deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/> |
29 | 29 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
30 | 30 | </after>
|
31 | 31 |
|
32 |
| - <!--Open Product Index Page--> |
33 | 32 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/>
|
34 | 33 |
|
35 |
| - <!--Search products using keyword --> |
36 |
| - <actionGroup ref="SearchProductGridByKeyword2ActionGroup" stepKey="searchByKeyword"> |
37 |
| - <argument name="keyword" value="Testp"/> |
38 |
| - </actionGroup> |
| 34 | + <actionGroup ref="ClearFiltersAdminProductGridActionGroup" stepKey="searchByKeyword"/> |
39 | 35 |
|
40 |
| - <!--Sort Products by ID in descending order--> |
41 | 36 | <actionGroup ref="SortProductsByIdDescendingActionGroup" stepKey="sortProductsByIdDescending"/>
|
42 | 37 |
|
43 |
| - <!--Select products--> |
44 | 38 | <actionGroup ref="AdminCheckProductOnProductGridActionGroup" stepKey="selectFirstProduct">
|
45 | 39 | <argument name="product" value="$simpleProduct1$"/>
|
46 | 40 | </actionGroup>
|
47 | 41 | <actionGroup ref="AdminCheckProductOnProductGridActionGroup" stepKey="selectSecondProduct">
|
48 | 42 | <argument name="product" value="$simpleProduct2$"/>
|
49 | 43 | </actionGroup>
|
50 | 44 |
|
51 |
| - <!-- Update product price--> |
52 | 45 | <actionGroup ref="AdminClickMassUpdateProductAttributesActionGroup" stepKey="clickDropdown"/>
|
53 | 46 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickChangeStatus"/>
|
54 | 47 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductAttributePageToLoad"/>
|
|
63 | 56 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForUpdatedProductToSave"/>
|
64 | 57 | <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeAttributeUpateSuccessMsg"/>
|
65 | 58 |
|
66 |
| - <!-- Start message queue --> |
67 | 59 | <actionGroup ref="CliConsumerStartActionGroup" stepKey="startMessageQueueConsumer">
|
68 | 60 | <argument name="consumerName" value="{{AdminProductAttributeUpdateConsumerData.consumerName}}"/>
|
69 | 61 | <argument name="maxMessages" value="{{AdminProductAttributeUpdateConsumerData.messageLimit}}"/>
|
70 | 62 | </actionGroup>
|
71 |
| - <!-- Run cron --> |
| 63 | + |
72 | 64 | <magentoCLI command="cron:run --group=index" stepKey="runCron"/>
|
73 | 65 |
|
74 |
| - <!--Verify product name, sku and updated price--> |
75 |
| - <!-- <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToFirstProductEditPage"> |
76 |
| - <argument name="productId" value="$$simpleProduct1.id$$"/> |
77 |
| - </actionGroup> --> |
78 |
| - <actionGroup ref="AssertProductInfoOnEditPageActionGroup" stepKey="waitForFirstProductToLoad"> |
| 66 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openFirstProduct"/> |
| 67 | + <actionGroup ref="AssertAdminProductPriceUpdatedOnEditPageActionGroup" stepKey="waitForFirstProductToLoad"> |
79 | 68 | <argument name="product" value="$$simpleProduct1$$"/>
|
| 69 | + <argument name="price" value="90.99"/> |
80 | 70 | </actionGroup>
|
| 71 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeFirstProductNameInField"/> |
| 72 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeFirstProductSkuInField"/> |
| 73 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeFirstProductPriceInField"/> |
| 74 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnBackButton"/> |
81 | 75 |
|
82 |
| - <!-- <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToSecondProductEditPage"> |
83 |
| - <argument name="productId" value="$$simpleProduct2.id$$"/> |
84 |
| - </actionGroup> --> |
85 |
| - <actionGroup ref="AssertProductInfoOnEditPageActionGroup" stepKey="waitForSecondProductToLoad"> |
| 76 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="waitForProductsToLoad"/> |
| 77 | + |
| 78 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="openSecondProduct"/> |
| 79 | + <actionGroup ref="AssertAdminProductPriceUpdatedOnEditPageActionGroup" stepKey="waitForSecondProductToLoad"> |
86 | 80 | <argument name="product" value="$$simpleProduct2$$"/>
|
87 |
| - </actionGroup> |
88 |
| - |
89 |
| - <!-- <click stepKey="openFirstProduct" selector="{{AdminProductGridSection.productRowBySku($$simpleProduct1.sku$$)}}"/> |
90 |
| - <waitForPageLoad stepKey="waitForFirstProductToLoad"/> |
91 |
| - <seeInField stepKey="seeFirstProductNameInField" selector="{{AdminProductFormSection.productName}}" userInput="$$simpleProduct1.name$$"/> |
92 |
| - <seeInField stepKey="seeFirstProductSkuInField" selector="{{AdminProductFormSection.productSku}}" userInput="$$simpleProduct1.sku$$"/> |
93 |
| - <seeInField stepKey="seeFirstProductPriceInField" selector="{{AdminProductFormSection.productPrice}}" userInput="90.99"/> |
94 |
| - <click stepKey="clickOnBackButton" selector="{{AdminGridMainControls.back}}"/> |
95 |
| - <waitForPageLoad stepKey="waitForProductsToLoad"/> |
96 |
| - <click stepKey="openSecondProduct" selector="{{AdminProductGridSection.productRowBySku($$simpleProduct2.sku$$)}}"/> |
97 |
| - <waitForPageLoad stepKey="waitForSecondProductToLoad"/> |
98 |
| - <seeInField stepKey="seeSecondProductNameInField" selector="{{AdminProductFormSection.productName}}" userInput="$$simpleProduct2.name$$"/> |
99 |
| - <seeInField stepKey="seeSecondProductSkuInField" selector="{{AdminProductFormSection.productSku}}" userInput="$$simpleProduct2.sku$$"/> |
100 |
| - <seeInField stepKey="seeSecondProductPriceInField" selector="{{AdminProductFormSection.productPrice}}" userInput="90.99"/> --> |
| 81 | + <argument name="price" value="90.99"/> |
| 82 | + </actionGroup> |
| 83 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSecondProductNameInField"/> |
| 84 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSecondProductSkuInField"/> |
| 85 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="seeSecondProductPriceInField"/> |
| 86 | + |
101 | 87 | </test>
|
102 | 88 | </tests>
|
0 commit comments