|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminSimpleProductGifWithUnusedTransparencyImageTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Catalog"/> |
| 13 | + <stories value="Using a GIF image with transparency color declared but not used as a product main image should not prevent the product grid from being rendered properly"/> |
| 14 | + <title value="Using a GIF image with transparency color declared but not used as a product image"/> |
| 15 | + <description value="Using a GIF image with transparency color declared but not used as a product main image should not prevent the product grid from being rendered properly"/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <useCaseId value="ACP2E-1632"/> |
| 18 | + <testCaseId value="AC-8028"/> |
| 19 | + <group value="Catalog"/> |
| 20 | + </annotations> |
| 21 | + |
| 22 | + <before> |
| 23 | + <createData entity="_defaultCategory" stepKey="category"/> |
| 24 | + <createData entity="_defaultProduct" stepKey="firstProduct"> |
| 25 | + <requiredEntity createDataKey="category"/> |
| 26 | + </createData> |
| 27 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 28 | + </before> |
| 29 | + |
| 30 | + <after> |
| 31 | + <deleteData createDataKey="category" stepKey="deletePreReqCategory"/> |
| 32 | + <deleteData createDataKey="firstProduct" stepKey="deleteFirstProduct"/> |
| 33 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/> |
| 34 | + </after> |
| 35 | + |
| 36 | + <!-- Navigate to the product grid and edit the product --> |
| 37 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex"/> |
| 38 | + <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku"> |
| 39 | + <argument name="product" value="$$firstProduct$$"/> |
| 40 | + </actionGroup> |
| 41 | + <actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProducForEditByClickingRow1Column2InProductGrid"/> |
| 42 | + |
| 43 | + <!-- Set the test GIF image as a main product image and save the product --> |
| 44 | + <actionGroup ref="AddProductImageActionGroup" stepKey="addImageForProduct"> |
| 45 | + <argument name="image" value="GifImageWithUnusedTransparencyIndex"/> |
| 46 | + </actionGroup> |
| 47 | + <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/> |
| 48 | + |
| 49 | + <!-- Go back to the product grid and make sure the product is present and visible on the grid --> |
| 50 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="returnToProductIndex"/> |
| 51 | + <actionGroup ref="AssertProductOnAdminGridActionGroup" stepKey="assertFirstOnAdminGrid"> |
| 52 | + <argument name="product" value="_defaultProduct"/> |
| 53 | + </actionGroup> |
| 54 | + |
| 55 | + <actionGroup ref="ClearFiltersAdminProductGridActionGroup" stepKey="resetProductGridBeforeLeaving"/> |
| 56 | + </test> |
| 57 | +</tests> |
0 commit comments