|
| 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="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminAddRemoveDefaultVideoBundleProductTest" extends="AdminAddRemoveDefaultVideoSimpleProductTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Bundle"/> |
| 14 | + <stories value="Add/remove images and videos for all product types and category"/> |
| 15 | + <title value="Admin should be able to add/remove default product video for a Bundle Product"/> |
| 16 | + <description value="Admin should be able to add/remove default product video for a Bundle Product"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="MC-110"/> |
| 19 | + <group value="catalog"/> |
| 20 | + <group value="bundle"/> |
| 21 | + <group value="productVideo"/> |
| 22 | + </annotations> |
| 23 | + <before> |
| 24 | + <remove keyForRemoval="setYoutubeApiKeyConfig"/> |
| 25 | + <createData entity="SimpleProduct2" before="createProduct" stepKey="createFirstSimpleProduct"/> |
| 26 | + <createData entity="SimpleProduct2" after="createFirstSimpleProduct" stepKey="createSecondSimpleProduct"/> |
| 27 | + <createData entity="ApiBundleProduct" stepKey="createProduct"/> |
| 28 | + <createData entity="CheckboxOption" after="createProduct" stepKey="createBundleCheckboxOption"> |
| 29 | + <requiredEntity createDataKey="createProduct"/> |
| 30 | + </createData> |
| 31 | + <createData entity="ApiBundleLink" after="createBundleCheckboxOption" stepKey="linkFirstSimpleProductToOption"> |
| 32 | + <requiredEntity createDataKey="createProduct"/> |
| 33 | + <requiredEntity createDataKey="createBundleCheckboxOption"/> |
| 34 | + <requiredEntity createDataKey="createFirstSimpleProduct"/> |
| 35 | + </createData> |
| 36 | + <createData entity="ApiBundleLink" after="linkFirstSimpleProductToOption" stepKey="linkSecondSimpleProductToOption"> |
| 37 | + <requiredEntity createDataKey="createProduct"/> |
| 38 | + <requiredEntity createDataKey="createBundleCheckboxOption"/> |
| 39 | + <requiredEntity createDataKey="createSecondSimpleProduct"/> |
| 40 | + </createData> |
| 41 | + </before> |
| 42 | + <after> |
| 43 | + <remove keyForRemoval="setYoutubeApiKeyDefaultConfig"/> |
| 44 | + <deleteData createDataKey="createFirstSimpleProduct" after="deleteProduct" stepKey="deleteFirstSimpleProduct"/> |
| 45 | + <deleteData createDataKey="createSecondSimpleProduct" after="deleteFirstSimpleProduct" stepKey="deleteSecondSimpleProduct"/> |
| 46 | + </after> |
| 47 | + |
| 48 | + <actionGroup ref="AddProductVideoActionGroup" stepKey="addProductVideo"> |
| 49 | + <argument name="video" value="VimeoProductVideo"/> |
| 50 | + </actionGroup> |
| 51 | + <actionGroup ref="AssertProductVideoAdminProductPageActionGroup" stepKey="assertProductVideoPresentInProductEditPage"> |
| 52 | + <argument name="video" value="VimeoProductVideo"/> |
| 53 | + </actionGroup> |
| 54 | + |
| 55 | + <actionGroup ref="AssertProductVideoStorefrontProductPageActionGroup" stepKey="assertProductVideoPresentInStorefrontProductPage"> |
| 56 | + <argument name="videoType" value="vimeo"/> |
| 57 | + </actionGroup> |
| 58 | + |
| 59 | + <actionGroup ref="AssertProductVideoNotInAdminProductPageActionGroup" stepKey="assertProductVideoAbsentInProductEditPage"> |
| 60 | + <argument name="video" value="VimeoProductVideo"/> |
| 61 | + </actionGroup> |
| 62 | + |
| 63 | + <actionGroup ref="AssertProductVideoNotInStorefrontProductPageActionGroup" stepKey="assertProductVideoAbsentInStorefrontProductPage"> |
| 64 | + <argument name="videoType" value="vimeo"/> |
| 65 | + </actionGroup> |
| 66 | + </test> |
| 67 | +</tests> |
0 commit comments