|
16 | 16 | <arguments>
|
17 | 17 | <argument name="product" defaultValue="_defaultProduct"/>
|
18 | 18 | </arguments>
|
19 |
| - |
| 19 | + |
20 | 20 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="visitAdminProductPage"/>
|
21 | 21 | <waitForPageLoad stepKey="waitForPageLoadInitial"/>
|
22 | 22 | <conditionalClick selector="{{AdminProductGridFilterSection.clearFilters}}" dependentSelector="{{AdminProductGridFilterSection.clearFilters}}" visible="true" stepKey="clickClearFiltersInitial"/>
|
|
108 | 108 | <seeInTitle userInput="{{product.name}}" stepKey="seeProductNameInTitle"/>
|
109 | 109 | </actionGroup>
|
110 | 110 |
|
| 111 | + <actionGroup name="createConfigurableProductWithTwoAttributes" extends="createConfigurableProduct"> |
| 112 | + <annotations> |
| 113 | + <description>Goes to the Admin Product grid page. Creates a Configurable Product with 2 product attributes.</description> |
| 114 | + </annotations> |
| 115 | + <arguments> |
| 116 | + <argument name="attribute1" defaultValue="ProductColorAttribute"/> |
| 117 | + <argument name="attribute2" defaultValue="ProductSizeAttribute"/> |
| 118 | + </arguments> |
| 119 | + <remove keyForRemoval="clickOnNewAttribute"/> |
| 120 | + <remove keyForRemoval="waitForIFrame"/> |
| 121 | + <remove keyForRemoval="switchToNewAttributeIFrame"/> |
| 122 | + <remove keyForRemoval="fillDefaultLabel"/> |
| 123 | + <remove keyForRemoval="clickOnNewAttributePanel"/> |
| 124 | + <remove keyForRemoval="waitForSaveAttribute"/> |
| 125 | + <remove keyForRemoval="switchOutOfIFrame"/> |
| 126 | + <remove keyForRemoval="waitForFilters"/> |
| 127 | + <remove keyForRemoval="clickOnFilters"/> |
| 128 | + <remove keyForRemoval="fillFilterAttributeCodeField"/> |
| 129 | + <remove keyForRemoval="clickApplyFiltersButton"/> |
| 130 | + <remove keyForRemoval="clickOnFirstCheckbox"/> |
| 131 | + <click selector="{{AdminCreateProductConfigurationsPanel.attributeCheckbox(attribute1.attribute_code)}}" stepKey="selectAttribute1" after="clickOnCreateConfigurations"/> |
| 132 | + <click selector="{{AdminCreateProductConfigurationsPanel.attributeCheckbox(attribute2.attribute_code)}}" stepKey="selectAttribute2" after="selectAttribute1"/> |
| 133 | + <remove keyForRemoval="waitCreateNewValueAppears"/> |
| 134 | + <remove keyForRemoval="clickOnCreateNewValue1"/> |
| 135 | + <remove keyForRemoval="fillFieldForNewAttribute1"/> |
| 136 | + <remove keyForRemoval="clickOnSaveNewAttribute1"/> |
| 137 | + <remove keyForRemoval="clickOnCreateNewValue2"/> |
| 138 | + <remove keyForRemoval="fillFieldForNewAttribute2"/> |
| 139 | + <remove keyForRemoval="clickOnSaveNewAttribute2"/> |
| 140 | + <remove keyForRemoval="clickOnCreateNewValue3"/> |
| 141 | + <remove keyForRemoval="fillFieldForNewAttribute3"/> |
| 142 | + <remove keyForRemoval="clickOnSaveNewAttribute3"/> |
| 143 | + <remove keyForRemoval="clickOnSelectAll"/> |
| 144 | + <click selector="{{AdminCreateProductConfigurationsPanel.selectAllByAttribute(attribute1.frontend_label)}}" stepKey="selectAllOptionsOfAttribute1" before="clickOnNextButton2"/> |
| 145 | + <click selector="{{AdminCreateProductConfigurationsPanel.selectAllByAttribute(attribute2.frontend_label)}}" stepKey="selectAllOptionsOfAttribute2" before="clickOnNextButton2"/> |
| 146 | + <remove keyForRemoval="applyUniquePricesByAttributeToEachSku"/> |
| 147 | + <remove keyForRemoval="clickOnApplyUniquePricesByAttributeToEachSku"/> |
| 148 | + <remove keyForRemoval="selectAttributes"/> |
| 149 | + <remove keyForRemoval="fillAttributePrice1"/> |
| 150 | + <remove keyForRemoval="fillAttributePrice2"/> |
| 151 | + <remove keyForRemoval="fillAttributePrice3"/> |
| 152 | + <remove keyForRemoval="clickOnSaveButton2"/> |
| 153 | + <remove keyForRemoval="clickOnConfirmInPopup"/> |
| 154 | + <remove keyForRemoval="seeSaveProductMessage"/> |
| 155 | + <remove keyForRemoval="seeProductNameInTitle"/> |
| 156 | + </actionGroup> |
| 157 | + <actionGroup name="saveConfigurableProduct"> |
| 158 | + <annotations> |
| 159 | + <description>Save configurable product</description> |
| 160 | + </annotations> |
| 161 | + <arguments> |
| 162 | + <argument name="product" defaultValue="_defaultProduct"/> |
| 163 | + </arguments> |
| 164 | + <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickOnSaveButton"/> |
| 165 | + <click selector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" stepKey="clickOnConfirmInPopup"/> |
| 166 | + <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="seeSaveProductMessage"/> |
| 167 | + <seeInTitle userInput="{{product.name}}" stepKey="seeProductNameInTitle"/> |
| 168 | + </actionGroup> |
| 169 | + |
111 | 170 | <actionGroup name="generateConfigurationsByAttributeCode">
|
112 | 171 | <annotations>
|
113 | 172 | <description>Generates the Product Configurations for the provided Attribute Code on the Configurable Product creation/edit page.</description>
|
|
296 | 355 | <fillField userInput="{{firstOption.weight}}" selector="{{AdminProductFormConfigurationsSection.confProductWeightCell(firstOption.name)}}" stepKey="fillFieldWeightForFirstAttributeOption"/>
|
297 | 356 | <fillField userInput="{{secondOption.weight}}" selector="{{AdminProductFormConfigurationsSection.confProductWeightCell(secondOption.name)}}" stepKey="fillFieldWeightForSecondAttributeOption"/>
|
298 | 357 | </actionGroup>
|
299 |
| - |
| 358 | + <actionGroup name="changeConfigurableProductChildProductPrice"> |
| 359 | + <annotations> |
| 360 | + <description>Change the price of a configurable child product in the grid under configurations.</description> |
| 361 | + </annotations> |
| 362 | + <arguments> |
| 363 | + <argument name="productAttributes" type="string"/> |
| 364 | + <argument name="productPrice" type="string"/> |
| 365 | + </arguments> |
| 366 | + <fillField userInput="{{productPrice}}" selector="{{AdminProductFormConfigurationsSection.confProductPriceCell(productAttributes)}}" stepKey="fillPriceForConfigurableProductAttributeOption"/> |
| 367 | + </actionGroup> |
300 | 368 | <actionGroup name="changeProductConfigurationsInGridExceptSku" extends="changeProductConfigurationsInGrid">
|
301 | 369 | <annotations>
|
302 | 370 | <description>EXTENDS: changeProductConfigurationsInGrid. Removes 'fillFieldSkuForFirstAttributeOption' and 'fillFieldSkuForSecondAttributeOption'.</description>
|
303 | 371 | </annotations>
|
304 |
| - |
| 372 | + |
305 | 373 | <remove keyForRemoval="fillFieldSkuForFirstAttributeOption"/>
|
306 | 374 | <remove keyForRemoval="fillFieldSkuForSecondAttributeOption"/>
|
307 | 375 | </actionGroup>
|
|
0 commit comments