|
| 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" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="StorefrontRemoveProductFromCompareSidebarTest"> |
| 11 | + <annotations> |
| 12 | + <title value="Verify that the product isn't removed on clicking the product name"/> |
| 13 | + <stories value="Verify that the product isn't removed on clicking the product name"/> |
| 14 | + <description value="Verify that the product isn't removed on clicking the product name, but it's redirected to product page"/> |
| 15 | + <features value="Catalog"/> |
| 16 | + <severity value="MINOR"/> |
| 17 | + <group value="Catalog"/> |
| 18 | + </annotations> |
| 19 | + <before> |
| 20 | + <createData entity="_defaultCategory" stepKey="defaultCategory"/> |
| 21 | + <createData entity="SimpleProduct" stepKey="simpleProduct"> |
| 22 | + <requiredEntity createDataKey="defaultCategory"/> |
| 23 | + </createData> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/> |
| 27 | + <deleteData createDataKey="defaultCategory" stepKey="deleteCategory1"/> |
| 28 | + </after> |
| 29 | + <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="openCategoryPage"> |
| 30 | + <argument name="category" value="$$defaultCategory$$"/> |
| 31 | + </actionGroup> |
| 32 | + <actionGroup ref="StorefrontAddCategoryProductToCompareActionGroup" stepKey="addProductToCompareList"> |
| 33 | + <argument name="productVar" value="$$simpleProduct$$"/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="StorefrontClickOnProductFromSidebarCompareListActionGroup" stepKey="clickOnComparingProductLink"> |
| 36 | + <argument name="product" value="$$simpleProduct$$"/> |
| 37 | + </actionGroup> |
| 38 | + <actionGroup ref="StorefrontCheckProductUrlActionGroup" stepKey="checkProductPageUrl"> |
| 39 | + <argument name="productUrl" value="$$simpleProduct.custom_attributes[url_key]$$"/> |
| 40 | + </actionGroup> |
| 41 | + </test> |
| 42 | +</tests> |
0 commit comments