|
| 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="AdminReportsAbandonedCartsSearchEmailWithPlusTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Reports"/> |
| 14 | + <stories value="Search in Grid"/> |
| 15 | + <title value="Admin Reports Abandoned Carts Search Email With Plus"/> |
| 16 | + <description value="Admin should be able to search for email that contains plus > Abandoned Carts"/> |
| 17 | + <severity value="AVERAGE"/> |
| 18 | + <testCaseId value="ACP2E-1435"/> |
| 19 | + <group value="reports"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!-- Create Category and Product --> |
| 23 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 24 | + <createData entity="_defaultProduct" stepKey="createProduct" /> |
| 25 | + |
| 26 | + <!-- Create Customer --> |
| 27 | + <createData entity="Simple_US_Customer" stepKey="createCustomer"> |
| 28 | + <field key="email">John+Doe@example.com</field> |
| 29 | + </createData> |
| 30 | + |
| 31 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 32 | + </before> |
| 33 | + <after> |
| 34 | + <!-- Delete created Product, Category and Customer --> |
| 35 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 36 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 37 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 38 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 39 | + </after> |
| 40 | + |
| 41 | + <!-- Login as a Customer on Storefront --> |
| 42 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginAsCustomerToStorefront"> |
| 43 | + <argument name="Customer" value="$createCustomer$"/> |
| 44 | + </actionGroup> |
| 45 | + |
| 46 | + <!-- Open product and add product to cart--> |
| 47 | + <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="openProductFromCategory"> |
| 48 | + <argument name="productUrlKey" value="$$createProduct.custom_attributes[url_key]$$"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="addProductToCart"> |
| 51 | + <argument name="product" value="$createProduct$"/> |
| 52 | + <argument name="productCount" value="1"/> |
| 53 | + </actionGroup> |
| 54 | + |
| 55 | + <!-- Open Abandoned carts report in Admin --> |
| 56 | + <amOnPage url="{{AdminDashboardPage.url}}" stepKey="amOnDashboardPage"/> |
| 57 | + <actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToAbandonedCartsPage"> |
| 58 | + <argument name="menuUiId" value="{{AdminMenuReports.dataUiId}}"/> |
| 59 | + <argument name="submenuUiId" value="{{AdminMenuReportsMarketingAbandonedCarts.dataUiId}}"/> |
| 60 | + </actionGroup> |
| 61 | + <actionGroup ref="AdminAssertPageTitleActionGroup" stepKey="seePageTitle"> |
| 62 | + <argument name="title" value="{{AdminMenuReportsMarketingAbandonedCarts.pageTitle}}"/> |
| 63 | + </actionGroup> |
| 64 | + </test> |
| 65 | +</tests> |
0 commit comments