|
15 | 15 | <title value="Admin Reports Abandoned Carts Search Email With Plus"/> |
16 | 16 | <description value="Admin should be able to search for email that contains plus > Abandoned Carts"/> |
17 | 17 | <severity value="AVERAGE"/> |
18 | | - <testCaseId value="ACP2E-1435"/> |
| 18 | + <testCaseId value="AC-7465"/> |
| 19 | + <useCaseId value="ACP2E-1435"/> |
19 | 20 | <group value="reports"/> |
20 | 21 | </annotations> |
21 | 22 | <before> |
22 | 23 | <!-- Create Category and Product --> |
23 | 24 | <createData entity="_defaultCategory" stepKey="createCategory"/> |
24 | 25 | <createData entity="_defaultProduct" stepKey="createProduct" /> |
25 | 26 |
|
26 | | - <!-- Create Customer --> |
| 27 | + <!-- Create Customers --> |
27 | 28 | <createData entity="Simple_US_Customer" stepKey="createCustomer"> |
28 | | - <field key="email">John+@example.com</field> |
| 29 | + <field key="email">John+Doe@example.com</field> |
| 30 | + </createData> |
| 31 | + <createData entity="Simple_US_Customer" stepKey="createCustomer2"> |
| 32 | + <field key="email">JohnDoe@example.com</field> |
29 | 33 | </createData> |
30 | 34 |
|
31 | 35 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
32 | 36 | </before> |
| 37 | + |
33 | 38 | <after> |
34 | | - <!-- Delete created Product, Category and Customer --> |
| 39 | + <!-- Delete created Product, Category and Customers --> |
35 | 40 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
36 | 41 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
37 | 42 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 43 | + <deleteData createDataKey="createCustomer2" stepKey="deleteCustomer2"/> |
| 44 | + |
| 45 | + <!-- Reset filter on Abandoned Carts Report page --> |
| 46 | + <amOnPage url="{{AdminAbandonedCartsReportPage.url}}" stepKey="amOnAbandonedCartsReportPage"/> |
| 47 | + <click selector="{{AbandonedCartsReportMainSection.resetButton}}" stepKey="clickResetButton"/> |
| 48 | + |
38 | 49 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
39 | 50 | </after> |
40 | 51 |
|
|
43 | 54 | <argument name="Customer" value="$createCustomer$"/> |
44 | 55 | </actionGroup> |
45 | 56 |
|
46 | | - <!-- Open product and add product to cart--> |
| 57 | + <!-- Open product and add product to cart of the first customer --> |
47 | 58 | <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="openProductFromCategory"> |
48 | 59 | <argument name="productUrlKey" value="$$createProduct.custom_attributes[url_key]$$"/> |
49 | 60 | </actionGroup> |
|
52 | 63 | <argument name="productCount" value="1"/> |
53 | 64 | </actionGroup> |
54 | 65 |
|
| 66 | + <!-- Logout from customer account --> |
| 67 | + <actionGroup ref="CustomerLogoutStorefrontByMenuItemsActionGroup" stepKey="logoutFirstCustomer"/> |
| 68 | + |
| 69 | + <!-- Login as a second Customer on Storefront --> |
| 70 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginAsCustomerToStorefront2"> |
| 71 | + <argument name="Customer" value="$createCustomer2$"/> |
| 72 | + </actionGroup> |
| 73 | + |
| 74 | + <!-- Open product and add product to cart of the first customer --> |
| 75 | + <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="openProductFromCategory2"> |
| 76 | + <argument name="productUrlKey" value="$$createProduct.custom_attributes[url_key]$$"/> |
| 77 | + </actionGroup> |
| 78 | + <actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="addProductToCart2"> |
| 79 | + <argument name="product" value="$createProduct$"/> |
| 80 | + <argument name="productCount" value="1"/> |
| 81 | + </actionGroup> |
| 82 | + |
55 | 83 | <!-- Open Abandoned carts report in Admin --> |
56 | 84 | <amOnPage url="{{AdminDashboardPage.url}}" stepKey="amOnDashboardPage"/> |
57 | 85 | <actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToAbandonedCartsPage"> |
|
68 | 96 | </actionGroup> |
69 | 97 |
|
70 | 98 | <!-- Check record is present --> |
| 99 | + <seeElement selector="{{AbandonedCartsGridSection.email('John+')}}" stepKey="seeCartInGrid"/> |
71 | 100 |
|
| 101 | + <!-- Check that only one record is present --> |
| 102 | + <actionGroup ref="AdminAssertNumberOfRecordsInAbandonedCartsReportActionGroup" stepKey="checkOnlyOneRecordIsFound"/> |
72 | 103 |
|
73 | 104 | </test> |
74 | 105 | </tests> |
0 commit comments