|
| 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="AdminAddDefaultImageSimpleProductTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Catalog"/> |
| 14 | + <title value="Storefront Fotorama arrows test"/> |
| 15 | + <description value="Check arrows next to the thumbs are not visible than there is room for all pictures."/> |
| 16 | + <severity value="BLOCKER"/> |
| 17 | + <group value="Catalog"/> |
| 18 | + <group value="cloud"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 22 | + <createData entity="_defaultProduct" stepKey="createProduct"> |
| 23 | + <requiredEntity createDataKey="createCategory"/> |
| 24 | + </createData> |
| 25 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 26 | + </before> |
| 27 | + <after> |
| 28 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 29 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 30 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 31 | + </after> |
| 32 | + <!-- Open Product for edit --> |
| 33 | + <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="findCreatedProductInGrid"> |
| 34 | + <argument name="product" value="$$createProduct$$"/> |
| 35 | + </actionGroup> |
| 36 | + <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="goToEditProductPage"> |
| 37 | + <argument name="product" value="$$createProduct$$"/> |
| 38 | + </actionGroup> |
| 39 | + |
| 40 | + <!-- Add images to product --> |
| 41 | + <actionGroup ref="AddProductImageActionGroup" stepKey="addFirstImageToProduct"> |
| 42 | + <argument name="image" value="MagentoLogo"/> |
| 43 | + </actionGroup> |
| 44 | + <actionGroup ref="AddProductImageActionGroup" stepKey="addSecondImageToProduct"> |
| 45 | + <argument name="image" value="ProductImage"/> |
| 46 | + </actionGroup> |
| 47 | + <actionGroup ref="AddProductImageActionGroup" stepKey="addThirdImageToProduct"> |
| 48 | + <argument name="image" value="TestImageNew"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="SaveProductFormActionGroup" stepKey="saveSimpleProduct"/> |
| 51 | + |
| 52 | + <!-- Assert product in storefront product page --> |
| 53 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openCreatedProductPage"> |
| 54 | + <argument name="productUrl" value="$$createProduct.custom_attributes[url_key]$$"/> |
| 55 | + </actionGroup> |
| 56 | + |
| 57 | + <!-- Assert Fotorama arrows aren't visible --> |
| 58 | + <dontSeeElement selector="{{StorefrontProductMediaSection.fotoramaPrevButton}}" stepKey="dontSeePrevButton"/> |
| 59 | + <dontSeeElement selector="{{StorefrontProductMediaSection.fotoramaNextButton}}" stepKey="dontSeeNextButton"/> |
| 60 | + </test> |
| 61 | +</tests> |
0 commit comments