|
| 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="StorefrontCheckOptionsConfigurableProductInWishlistTest"> |
| 12 | + <annotations> |
| 13 | + <stories value="Wishlist"/> |
| 14 | + <title value="Move first Configurable Product with selected optional from Category Page to Wishlist."/> |
| 15 | + <description value="Move first Configurable Product with selected optional from Category Page to Wishlist. On Page will be present minimum two Configurable Product"/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <testCaseId value="MC-14211"/> |
| 18 | + <group value="wishlist"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <createData entity="ApiCategory" stepKey="createCategory"/> |
| 22 | + <createData entity="ApiConfigurableProduct" stepKey="createFirstConfigProduct"> |
| 23 | + <requiredEntity createDataKey="createCategory"/> |
| 24 | + </createData> |
| 25 | + <createData entity="ApiConfigurableProduct" stepKey="createSecondConfigProduct"> |
| 26 | + <requiredEntity createDataKey="createCategory"/> |
| 27 | + </createData> |
| 28 | + <createData entity="Simple_US_Customer" stepKey="customer"/> |
| 29 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 30 | + <argument name="indices" value=""/> |
| 31 | + </actionGroup> |
| 32 | + <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache"> |
| 33 | + <argument name="tags" value=""/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 36 | + </before> |
| 37 | + <after> |
| 38 | + <deleteData createDataKey="customer" stepKey="deleteCustomer"/> |
| 39 | + <actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteFirstProducts"> |
| 40 | + <argument name="sku" value="$$createFirstConfigProduct.sku$$"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteSecondProducts"> |
| 43 | + <argument name="sku" value="$$createSecondConfigProduct.sku$$"/> |
| 44 | + </actionGroup> |
| 45 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 46 | + <actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteAttribute" > |
| 47 | + <argument name="productAttributeLabel" value="{{visualSwatchAttribute.default_label}}"/> |
| 48 | + </actionGroup> |
| 49 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 50 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 51 | + <argument name="indices" value=""/> |
| 52 | + </actionGroup> |
| 53 | + <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache"> |
| 54 | + <argument name="tags" value=""/> |
| 55 | + </actionGroup> |
| 56 | + </after> |
| 57 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="navigateToFirstConfigProductPage"> |
| 58 | + <argument name="productId" value="$$createFirstConfigProduct.id$$"/> |
| 59 | + </actionGroup> |
| 60 | + <waitForPageLoad stepKey="waitForFirstProductPageLoad"/> |
| 61 | + <actionGroup ref="AddVisualSwatchToProductWithStorefrontConfigActionGroup" stepKey="addSwatchToFirstProduct"> |
| 62 | + <argument name="attribute" value="visualSwatchAttribute"/> |
| 63 | + <argument name="option1" value="visualSwatchOption1"/> |
| 64 | + <argument name="option2" value="visualSwatchOption2"/> |
| 65 | + </actionGroup> |
| 66 | + |
| 67 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="navigateToSecondConfigProductPage"> |
| 68 | + <argument name="productId" value="$$createSecondConfigProduct.id$$"/> |
| 69 | + </actionGroup> |
| 70 | + <waitForPageLoad stepKey="waitForSecondProductPageLoad"/> |
| 71 | + <actionGroup ref="AddVisualSwatchToProductWithOutCreatedActionGroup" stepKey="addSwatchToSecondProduct"> |
| 72 | + <argument name="attribute" value="visualSwatchAttribute"/> |
| 73 | + </actionGroup> |
| 74 | + |
| 75 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount"> |
| 76 | + <argument name="Customer" value="$$customer$$"/> |
| 77 | + </actionGroup> |
| 78 | + <actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategoryPage"> |
| 79 | + <argument name="categoryName" value="$$createCategory.name$$"/> |
| 80 | + </actionGroup> |
| 81 | + <actionGroup ref="StorefrontSelectVisualSwatchOptionOnCategoryPageActionGroup" stepKey="selectVisualSwatch"> |
| 82 | + <argument name="productId" value="$$createFirstConfigProduct.id$$" /> |
| 83 | + <argument name="visualSwatchOptionLabel" value="{{visualSwatchOption1.default_label}}" /> |
| 84 | + </actionGroup> |
| 85 | + <actionGroup ref="StorefrontCustomerAddProductToWishlistCategoryPageActionGroup" stepKey="addToWishlistProduct"> |
| 86 | + <argument name="productVar" value="$$createFirstConfigProduct$$"/> |
| 87 | + </actionGroup> |
| 88 | + |
| 89 | + <seeElement selector="{{StorefrontCustomerWishlistProductSection.productSeeDetailsByName($$createFirstConfigProduct.name$$)}}" stepKey="seeDetails"/> |
| 90 | + </test> |
| 91 | +</tests> |
0 commit comments