|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminRemoveDefaultVideoDownloadableProductTest"> |
| 12 | + <annotations> |
| 13 | + <group value="Downloadable"/> |
| 14 | + </annotations> |
| 15 | + <!-- Create downloadable product --> |
| 16 | + <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="adminProductIndexPageAdd" after="anchor0"/> |
| 17 | + <waitForPageLoad stepKey="waitForProductIndexPageLoad" after="adminProductIndexPageAdd"/> |
| 18 | + <actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage" after="adminProductIndexPageAdd"> |
| 19 | + <argument name="product" value="DownloadableProduct"/> |
| 20 | + </actionGroup> |
| 21 | + <actionGroup ref="fillMainProductFormNoWeight" stepKey="fillMainProductForm" after="goToCreateProductPage"> |
| 22 | + <argument name="product" value="DownloadableProduct"/> |
| 23 | + </actionGroup> |
| 24 | + |
| 25 | + <!-- Add downloadable links --> |
| 26 | + <click selector="{{AdminProductDownloadableSection.sectionHeader}}" stepKey="openDownloadableSection" after="anchor2"/> |
| 27 | + <checkOption selector="{{AdminProductDownloadableSection.isDownloadableProduct}}" stepKey="checkIsDownloadable" after="openDownloadableSection"/> |
| 28 | + <fillField userInput="{{downloadableData.link_title}}" selector="{{AdminProductDownloadableSection.linksTitleInput}}" stepKey="fillDownloadableLinkTitle" after="checkIsDownloadable"/> |
| 29 | + <checkOption selector="{{AdminProductDownloadableSection.isLinksPurchasedSeparately}}" stepKey="checkLinksPurchasedSeparately" after="fillDownloadableLinkTitle"/> |
| 30 | + <fillField userInput="{{downloadableData.sample_title}}" selector="{{AdminProductDownloadableSection.samplesTitleInput}}" stepKey="fillDownloadableSampleTitle" after="checkLinksPurchasedSeparately"/> |
| 31 | + <actionGroup ref="addDownloadableProductLinkWithMaxDownloads" stepKey="addDownloadableLinkWithMaxDownloads" after="fillDownloadableSampleTitle"> |
| 32 | + <argument name="link" value="downloadableLinkWithMaxDownloads"/> |
| 33 | + </actionGroup> |
| 34 | + <actionGroup ref="addDownloadableProductLink" stepKey="addDownloadableLink" after="addDownloadableLinkWithMaxDownloads"> |
| 35 | + <argument name="link" value="downloadableLink"/> |
| 36 | + </actionGroup> |
| 37 | + |
| 38 | + <!--Save Product--> |
| 39 | + <actionGroup ref="saveProductForm" stepKey="saveDownloadableProduct" after="anchor3"/> |
| 40 | + |
| 41 | + <!--Save Product--> |
| 42 | + <actionGroup ref="saveProductForm" stepKey="saveProductFormAfterRemove" after="anchor9"/> |
| 43 | + |
| 44 | + <!-- Assert product in storefront product page --> |
| 45 | + <actionGroup ref="AssertProductInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPageAfterRemove" after="anchor11"> |
| 46 | + <argument name="product" value="DownloadableProduct"/> |
| 47 | + </actionGroup> |
| 48 | + </test> |
| 49 | +</tests> |
0 commit comments