|
122 | 122 | <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButton3"/>
|
123 | 123 | <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButton4"/>
|
124 | 124 | </actionGroup>
|
| 125 | + <actionGroup name="createOptionsForAttribute"> |
| 126 | + <arguments> |
| 127 | + <argument name="attributeName" type="string" defaultValue="{{productAttributeColor.default_label}}"/> |
| 128 | + <argument name="firstOptionName" type="string" defaultValue="option1"/> |
| 129 | + <argument name="secondOptionName" type="string" defaultValue="option2"/> |
| 130 | + </arguments> |
| 131 | + <click selector="{{AdminCreateProductConfigurationsPanel.filters}}" stepKey="clickOnFilters"/> |
| 132 | + <fillField userInput="{{attributeName}}" selector="{{AdminCreateProductConfigurationsPanel.attributeCode}}" stepKey="fillFilterAttributeCodeField"/> |
| 133 | + <click selector="{{AdminCreateProductConfigurationsPanel.applyFilters}}" stepKey="clickApplyFiltersButton"/> |
| 134 | + <click selector="{{AdminCreateProductConfigurationsPanel.firstCheckbox}}" stepKey="clickOnFirstCheckbox"/> |
| 135 | + <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButton"/> |
| 136 | + <click selector="{{AdminCreateProductConfigurationsPanel.createNewValue}}" stepKey="clickOnCreateFirstNewValue"/> |
| 137 | + <fillField userInput="{{firstOptionName}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="fillFieldForNewFirstOption"/> |
| 138 | + <click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="clickOnSaveNewAttribute"/> |
| 139 | + <click selector="{{AdminCreateProductConfigurationsPanel.createNewValue}}" stepKey="clickOnCreateSecondNewValue"/> |
| 140 | + <fillField userInput="{{secondOptionName}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="fillFieldForNewSecondOption"/> |
| 141 | + <click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="clickOnSaveAttribute"/> |
| 142 | + <click selector="{{AdminCreateProductConfigurationsPanel.selectAll}}" stepKey="clickOnSelectAll"/> |
| 143 | + </actionGroup> |
125 | 144 |
|
126 | 145 | <actionGroup name="createConfigurationsForAttribute" extends="generateConfigurationsByAttributeCode">
|
127 | 146 | <arguments>
|
|
282 | 301 | <selectOption userInput="{{frontend_label}}" selector="{{AdminCreateProductConfigurationsPanel.selectPriceButton}}" stepKey="selectOption"/>
|
283 | 302 | <fillField selector="{{AdminCreateProductConfigurationsPanel.price(label)}}" userInput="{{price}}" stepKey="enterAttributeQuantity"/>
|
284 | 303 | </actionGroup>
|
| 304 | + <actionGroup name="addUniqueQuantityToConfigurableProductOption"> |
| 305 | + <arguments> |
| 306 | + <argument name="frontend_label" type="string" defaultValue="{{productAttributeColor.default_label}}"/> |
| 307 | + <argument name="label" type="string" defaultValue="option1"/> |
| 308 | + <argument name="quantity" type="string" defaultValue="10"/> |
| 309 | + </arguments> |
| 310 | + <click selector="{{AdminCreateProductConfigurationsPanel.applyUniqueQuantityToEachSkus}}" stepKey="clickOnApplyUniqueQuantitiesToEachSku"/> |
| 311 | + <selectOption selector="{{AdminCreateProductConfigurationsPanel.selectQuantity}}" userInput="{{frontend_label}}" stepKey="selectOption"/> |
| 312 | + <fillField selector="{{AdminCreateProductConfigurationsPanel.applyUniqueQuantity(label)}}" userInput="{{quantity}}" stepKey="enterAttributeQuantity"/> |
| 313 | + </actionGroup> |
285 | 314 |
|
286 | 315 | <actionGroup name="saveConfigurableProductWithNewAttributeSet">
|
287 | 316 | <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveConfigurableProduct"/>
|
|
318 | 347 | <waitForPageLoad stepKey="waitForNextStepLoaded"/>
|
319 | 348 | <see userInput="{{title}}" selector="{{AdminProductFormConfigurationsSection.stepsWizardTitle}}" stepKey="seeStepTitle"/>
|
320 | 349 | </actionGroup>
|
| 350 | + <actionGroup name="AdminConfigurableProductDisableConfigurationsActionGroup"> |
| 351 | + <arguments> |
| 352 | + <argument name="productName" type="string" defaultValue="{{SimpleProduct.name}}"/> |
| 353 | + </arguments> |
| 354 | + <click selector="{{AdminProductFormConfigurationsSection.actionsBtnByProductName(productName)}}" stepKey="clickToExpandActionsSelect"/> |
| 355 | + <click selector="{{AdminProductFormConfigurationsSection.disableProductBtn}}" stepKey="clickDisableChildProduct"/> |
| 356 | + <see selector="{{AdminProductFormConfigurationsSection.confProductOptionStatusCell(productName)}}" userInput="Disabled" stepKey="seeConfigDisabled"/> |
| 357 | + </actionGroup> |
321 | 358 | </actionGroups>
|
0 commit comments