|
| 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="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> |
| 10 | + <test name="StoreFrontAddProductsToWishListWithMultipleWishlistsEnabledTest"> |
| 11 | + <annotations> |
| 12 | + <stories value="Wishlist"/> |
| 13 | + <title value="Add products from the wishlist to the cart using the sidebar."/> |
| 14 | + <description value="Products added to the cart from wishlist and a customer remains on the same page."/> |
| 15 | + <severity value="MAJOR"/> |
| 16 | + <testCaseId value="MAGETWO-94021"/> |
| 17 | + <group value="wishlist"/> |
| 18 | + </annotations> |
| 19 | + <before> |
| 20 | + <createData entity="SimpleSubCategory" stepKey="categoryFirst"/> |
| 21 | + |
| 22 | + <createData entity="SimpleProduct" stepKey="simpleProduct1"> |
| 23 | + <requiredEntity createDataKey="categoryFirst"/> |
| 24 | + </createData> |
| 25 | + <!--<createData entity="SimpleProduct" stepKey="simpleProduct2">--> |
| 26 | + <!--<requiredEntity createDataKey="categoryFirst"/>--> |
| 27 | + <!--</createData>--> |
| 28 | + |
| 29 | + <createData entity="Simple_US_Customer" stepKey="customer"/> |
| 30 | + </before> |
| 31 | + <after> |
| 32 | + <deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/> |
| 33 | + <!--<deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/>--> |
| 34 | + <deleteData createDataKey="categoryFirst" stepKey="deleteCategoryFirst"/> |
| 35 | + <deleteData createDataKey="customer" stepKey="deleteCustomer"/> |
| 36 | + <actionGroup ref="ResetCustomerMultipleWishlistOption" stepKey="resetWishlistConfiguration"/> |
| 37 | + <amOnPage url="admin/admin/auth/logout/" stepKey="logout"/> |
| 38 | + </after> |
| 39 | + <!--Login to admin--> |
| 40 | + <actionGroup ref="LoginAsAdmin" stepKey="loginToAdmin"/> |
| 41 | + <comment userInput="Enable multiple wishlist" stepKey="enableMultipleWishlist"/> |
| 42 | + <actionGroup ref="EnableCustomerMultipleWishlistOption" stepKey="enableCustomerWishlist"/> |
| 43 | + <actionGroup ref="ClearCacheActionGroup" stepKey="clearCache"/> |
| 44 | + |
| 45 | + <!--<amOnPage url="admin/admin/auth/logout/" stepKey="logout"/>--> |
| 46 | + <!-- Sign in as customer --> |
| 47 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount"> |
| 48 | + <argument name="Customer" value="$$customer$$"/> |
| 49 | + </actionGroup> |
| 50 | + <!-- Add product from first category to the wishlist --> |
| 51 | + <amOnPage url="{{StorefrontCategoryPage.url($$categoryFirst.name$$)}}" stepKey="navigateToCategoryFirstPage"/> |
| 52 | + <actionGroup ref="StorefrontCheckCategorySimpleProduct" stepKey="browseAssertCategoryProduct1"> |
| 53 | + <argument name="product" value="$$simpleProduct1$$"/> |
| 54 | + </actionGroup> |
| 55 | + <!--<actionGroup ref="StorefrontCustomerAddCategoryProductToWishlistActionGroup2" stepKey="addSimpleProduct1ToWishlist">--> |
| 56 | + <!--<argument name="productVar" value="$$simpleProduct1$$"/>--> |
| 57 | + <!--</actionGroup>--> |
| 58 | + |
| 59 | + <!-- Add product from first category to the wishlist after shifting--> |
| 60 | + <actionGroup ref="StorefrontCustomerAddCategoryProductToWishlistActionGroup3" stepKey="addSimpleProduct1ToWishlist"> |
| 61 | + <argument name="productVar" value="$$simpleProduct1$$"/> |
| 62 | + </actionGroup> |
| 63 | + </test> |
| 64 | +</tests> |
0 commit comments