|
| 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="AdminAddOptionToBundleProductActionGroup"> |
| 12 | + <annotations> |
| 13 | + <description>Admin Add Option to bundled products</description> |
| 14 | + </annotations> |
| 15 | + <arguments> |
| 16 | + <argument name="categoryName" type="string"/> |
| 17 | + <argument name="website" defaultValue="Main Website" type="string"/> |
| 18 | + </arguments> |
| 19 | + <click selector="{{AdminProductFormSection.categoriesDropdown}}" stepKey="openDropDown"/> |
| 20 | + <checkOption selector="{{AdminProductFormSection.selectCategory(categoryName)}}" stepKey="selectCategory"/> |
| 21 | + <conditionalClick selector="{{AdminProductGridSection.productCollapsibleColumns('closed','Product in Websites')}}" dependentSelector="{{AdminProductGridSection.productCollapsibleColumns('closed','Product in Websites')}}" visible="true" stepKey="expandProductInWebsites"/> |
| 22 | + <checkOption selector="{{AdminProductGridSection.checkOtherWebsites(website)}}" stepKey="checkMainWebsite"/> |
| 23 | + <scrollTo selector="{{AdminProductFormBundleSection.contentDropDown}}" stepKey="scrollToBundleSection"/> |
| 24 | + <conditionalClick selector="{{AdminProductGridSection.productCollapsibleColumns('closed','Product in Websites')}}" dependentSelector="{{AdminProductGridSection.productCollapsibleColumns('closed','Product in Websites')}}" visible="true" stepKey="expandBundleItem"/> |
| 25 | + <selectOption userInput="Separately" selector="{{AdminProductFormBundleSection.shipmentType}}" stepKey="SelectShipBundleItemsAsTogether"/> |
| 26 | + <click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption"/> |
| 27 | + <waitForElementNotVisible selector="{{AdminProductGridSection.loadingMask}}" stepKey="waitForAddOptionLoad" time="30"/> |
| 28 | + <wait time="5" stepKey="waitForOptionsToPopulate"/> |
| 29 | + <fillField selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput="option1" stepKey="fillOptionTitle"/> |
| 30 | + <selectOption selector="{{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput="Drop-down" stepKey="selectInputTypeAsDropDown"/> |
| 31 | + <waitForElementVisible selector="{{AdminProductFormBundleSection.addProductsToOption}}" stepKey="waitForAddProductsToBundle"/> |
| 32 | + <click selector="{{AdminProductFormBundleSection.addProductsToOption}}" stepKey="clickAddProductsToOption"/> |
| 33 | + <waitForPageLoad stepKey="waitForPageLoadAfterBundleProducts"/> |
| 34 | + </actionGroup> |
| 35 | +</actionGroups> |
0 commit comments