| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
- <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
- <test name="AdminRemoveDefaultVideoBundleProductTest" extends="AdminRemoveDefaultVideoSimpleProductTest">
- <annotations>
- <features value="Bundle"/>
- <stories value="Add/remove images and videos for all product types and category"/>
- <title value="Admin should be able to remove default video from a Bundle Product"/>
- <description value="Admin should be able to remove default video from a Bundle Product"/>
- <severity value="MAJOR"/>
- <testCaseId value="MC-205"/>
- <group value="Bundle"/>
- </annotations>
- <before>
- <createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
- <createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
- </before>
- <after>
- <deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/>
- <deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/>
- </after>
- <!-- Create a bundle product -->
- <!-- Replacing steps in base AdminRemoveDefaultVideoSimpleProductTest -->
- <actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage">
- <argument name="product" value="BundleProduct"/>
- </actionGroup>
- <actionGroup ref="fillProductNameAndSkuInProductForm" stepKey="fillMainProductForm">
- <argument name="product" value="BundleProduct"/>
- </actionGroup>
- <!-- Add two bundle items -->
- <scrollTo selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" x="0" y="-100" stepKey="scrollToSection" after="addProductVideo"/>
- <conditionalClick selector="{{AdminProductFormBundleSection.bundleItemsToggle}}" dependentSelector="{{AdminProductFormBundleSection.bundleItemsToggle}}" visible="false" stepKey="openBundleSection" after="scrollToSection"/>
- <click selector="{{AdminProductFormBundleSection.addOption}}" stepKey="clickAddOption" after="openBundleSection"/>
- <waitForElementVisible selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" stepKey="waitForBundleTitle" after="clickAddOption"/>
- <fillField selector="{{AdminProductFormBundleSection.bundleOptionXTitle('0')}}" userInput="{{BundleProduct.optionTitle1}}" stepKey="fillBundleTitle" after="waitForBundleTitle"/>
- <selectOption selector="{{AdminProductFormBundleSection.bundleOptionXInputType('0')}}" userInput="{{BundleProduct.optionInputType1}}" stepKey="selectOptionBundleTitle" after="fillBundleTitle"/>
- <waitForElementVisible selector="{{AdminProductFormBundleSection.addProductsToOption}}" stepKey="waitForAddProducts" after="selectOptionBundleTitle"/>
- <click selector="{{AdminProductFormBundleSection.addProductsToOption}}" stepKey="clickAddProducts" after="waitForAddProducts"/>
- <waitForPageLoad stepKey="waitForPageLoad" after="clickAddProducts"/>
- <actionGroup ref="filterProductGridBySku" stepKey="filterProductGridBySku1" after="waitForPageLoad">
- <argument name="product" value="$$simpleProduct1$$"/>
- </actionGroup>
- <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="checkOption1" after="filterProductGridBySku1"/>
- <actionGroup ref="filterProductGridBySku" stepKey="filterProductGridBySku2" after="checkOption1">
- <argument name="product" value="$$simpleProduct2$$"/>
- </actionGroup>
- <checkOption selector="{{AdminAddProductsToOptionPanel.firstCheckbox}}" stepKey="checkOption2" after="filterProductGridBySku2"/>
- <click selector="{{AdminAddProductsToOptionPanel.addSelectedProducts}}" stepKey="addProducts" after="checkOption2"/>
- <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillQty1" after="addProducts"/>
- <fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillQty2" before="saveProductForm"/>
- <!-- Assert product in storefront product page -->
- <actionGroup ref="AssertProductNameAndSkuInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPage">
- <argument name="product" value="BundleProduct"/>
- </actionGroup>
- </test>
- </tests>
|