|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 11 | + <actionGroup name="AdminCreateThreeConfigurationsForConfigurableProductActionGroup"> |
| 12 | + <arguments> |
| 13 | + <argument name="blueColor" type="string"/> |
| 14 | + <argument name="whiteColor" type="string"/> |
| 15 | + <argument name="redColor" type="string"/> |
| 16 | + </arguments> |
| 17 | + <conditionalClick selector="{{AdminProductGridSection.productCollapsibleColumns('closed','Product in Websites')}}" dependentSelector="{{AdminProductGridSection.productCollapsibleColumns('closed','Product in Websites')}}" visible="true" stepKey="expandProductInWebsites"/> |
| 18 | + <checkOption selector="{{AdminProductGridSection.checkMainWebsite}}" stepKey="checkMainWebsite"/> |
| 19 | + <scrollTo selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" x="-200" y="-200" stepKey="scrollToCreateConfigurationsButton"/> |
| 20 | + <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnTheCreateConfigurationsButton"/> |
| 21 | + <waitForLoadingMaskToDisappear stepKey="waitPostClickingCreateConfigButton"/> |
| 22 | + <click selector="{{AdminGridRow.checkboxByValue('color')}}" stepKey="selectColorAttributeCheckbox"/> |
| 23 | + <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="navigateToAttributeValues"/> |
| 24 | + |
| 25 | + <click selector="{{AdminCreateProductConfigurationsPanel.createNewValue}}" stepKey="addNewColorWhite"/> |
| 26 | + <fillField userInput="{{whiteColor}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameWhite"/> |
| 27 | + <click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveWhiteColor"/> |
| 28 | + <click selector="{{AdminCreateProductConfigurationsPanel.createNewValue}}" stepKey="addNewColorBlue"/> |
| 29 | + <fillField userInput="{{blueColor}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameBlue"/> |
| 30 | + <click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveBlueColor"/> |
| 31 | + <click selector="{{AdminCreateProductConfigurationsPanel.createNewValue}}" stepKey="addNewColorRed"/> |
| 32 | + <fillField userInput="{{redColor}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameRed"/> |
| 33 | + <click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveRedColor"/> |
| 34 | + <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="navigateToBulkPricesAndImages"/> |
| 35 | + |
| 36 | + <click selector="{{AdminCreateProductConfigurationsPanel.applyUniquePricesByAttributeToEachSku}}" stepKey="clickOnApplyUniquePricesByAttributeToEachSku"/> |
| 37 | + <selectOption selector="{{AdminCreateProductConfigurationsPanel.selectAttribute}}" userInput="Color" stepKey="selectColorAsAttribute"/> |
| 38 | + <fillField selector="{{AdminCreateProductConfigurationsPanel.qtyForColorAttribute(whiteColor)}}" userInput="30" stepKey="setQtyForWhiteProduct"/> |
| 39 | + <fillField selector="{{AdminCreateProductConfigurationsPanel.qtyForColorAttribute(redColor)}}" userInput="10" stepKey="setQtyForRedProduct"/> |
| 40 | + <fillField selector="{{AdminCreateProductConfigurationsPanel.qtyForColorAttribute(blueColor)}}" userInput="20" stepKey="setQtyForBlueProduct"/> |
| 41 | + <click selector="{{AdminCreateProductConfigurationsPanel.applySingleQuantityToEachSkus}}" stepKey="clickOnApplySingleQuantityToEachSku"/> |
| 42 | + <fillField selector="{{AdminConfigurableProductAssignSourcesSlideOut.quantityPerSourceForSingleMode}}" userInput="100" stepKey="fillQuantityForCustomSource"/> |
| 43 | + <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="navigateToSummaryStep"/> |
| 44 | + <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnGenerateProducts"/> |
| 45 | + <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveConfigurableProduct"/> |
| 46 | + <conditionalClick selector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" dependentSelector="{{AdminChooseAffectedAttributeSetPopup.confirm}}" visible="true" stepKey="confirmDefaultAttributeSetForConfigurableProduct"/> |
| 47 | + <seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="checkProductSavedMessage"/> |
| 48 | + </actionGroup> |
| 49 | +</actionGroups> |
0 commit comments