|
| 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="VimeoVideoControlButtonsOnProductPageTest"> |
| 12 | + <annotations> |
| 13 | + <features value="ProductVideo"/> |
| 14 | + <stories value="Navigation arrow buttons not visible after video starts on product image"/> |
| 15 | + <title value="Navigation arrow buttons not visible after video starts on product image"/> |
| 16 | + <description value="Navigation arrow buttons not visible after video starts on product image"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="MC-40398"/> |
| 19 | + <useCaseId value="MC-39759"/> |
| 20 | + <group value="productVideo"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <createData entity="SimpleProduct2" stepKey="createProduct"/> |
| 24 | + <!-- Login to Admin page --> |
| 25 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 26 | + </before> |
| 27 | + <after> |
| 28 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 29 | + <!-- Logout from Admin page --> |
| 30 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 31 | + </after> |
| 32 | + |
| 33 | + <!-- Open product edit page --> |
| 34 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductEditPage"> |
| 35 | + <argument name="productId" value="$createProduct.id$"/> |
| 36 | + </actionGroup> |
| 37 | + <!-- Add image to product --> |
| 38 | + <actionGroup ref="AddProductImageActionGroup" stepKey="addImageForProduct"> |
| 39 | + <argument name="image" value="MagentoLogo"/> |
| 40 | + </actionGroup> |
| 41 | + <!-- Add product video --> |
| 42 | + <actionGroup ref="AddProductVideoActionGroup" stepKey="addProductVideo"> |
| 43 | + <argument name="video" value="VimeoProductVideo"/> |
| 44 | + </actionGroup> |
| 45 | + <!-- Save product form --> |
| 46 | + <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductForm"/> |
| 47 | + |
| 48 | + <!-- Open storefront product page --> |
| 49 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="goToStorefrontProductPage"> |
| 50 | + <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
| 51 | + </actionGroup> |
| 52 | + |
| 53 | + <!-- Check the navigation arrows on Storefront Product page --> |
| 54 | + <actionGroup ref="AssertProductVideoNavigationArrowsActionGroup" stepKey="assertProductVideoNavigationArrowsOnStorefrontProductPage"> |
| 55 | + <argument name="videoType" value="vimeo"/> |
| 56 | + </actionGroup> |
| 57 | + </test> |
| 58 | +</tests> |
0 commit comments