Skip to content

Commit dbf9e2b

Browse files
authored
Create AdminDeleteCustomerWishlistItemTest.xml
1 parent bb1a060 commit dbf9e2b

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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="AdminDeleteCustomerWishlistItemTest">
12+
<annotations>
13+
<features value="Wishlist"/>
14+
<stories value="Wishlist items deleting"/>
15+
<title value="Admin deletes an item from customer wishlist"/>
16+
<description value="Admin Should be able delete items from customer wishlist"/>
17+
<severity value="AVERAGE"/>
18+
<testCaseId value="MC-35170"/>
19+
<group value="wishlist"/>
20+
<group value="cloud"/>
21+
</annotations>
22+
<before>
23+
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
24+
<createData entity="SimpleProduct" stepKey="createProduct">
25+
<requiredEntity createDataKey="createCategory"/>
26+
</createData>
27+
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
28+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
29+
<argument name="indices" value=""/>
30+
</actionGroup>
31+
</before>
32+
<after>
33+
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
34+
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
35+
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
36+
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
37+
</after>
38+
39+
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
40+
<argument name="Customer" value="$createCustomer$"/>
41+
</actionGroup>
42+
<actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="openProductFromCategory">
43+
<argument name="category" value="$createCategory$"/>
44+
<argument name="product" value="$createProduct$"/>
45+
</actionGroup>
46+
<actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addToWishlistProduct">
47+
<argument name="productVar" value="$createProduct$"/>
48+
</actionGroup>
49+
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logout"/>
50+
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogoutBeforeCheck"/>
51+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
52+
<actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="navigateToCustomerEditPage">
53+
<argument name="customer" value="$createCustomer$"/>
54+
</actionGroup>
55+
<actionGroup ref="AdminNavigateCustomerWishlistTabActionGroup" stepKey="navigateToWishlistTab"/>
56+
<actionGroup ref="AdminCustomerFindWishlistItemActionGroup" stepKey="findWishlistItem">
57+
<argument name="productName" value="$$createProduct.name$$"/>
58+
</actionGroup>
59+
<actionGroup ref="AdminCustomerDeleteWishlistItemActionGroup" stepKey="deleteItem"/>
60+
<actionGroup ref="AssertAdminCustomerNoItemsInWishlistActionGroup" stepKey="assertNoItems"/>
61+
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
62+
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginOnStoreFront">
63+
<argument name="Customer" value="$createCustomer$"/>
64+
</actionGroup>
65+
<actionGroup ref="NavigateThroughCustomerTabsActionGroup" stepKey="navigateToWishlist">
66+
<argument name="navigationItemName" value="My Wish List"/>
67+
</actionGroup>
68+
<actionGroup ref="StorefrontAssertCustomerWishlistIsEmptyActionGroup" stepKey="assertNoItemsInWishlist"/>
69+
</test>
70+
</tests>

0 commit comments

Comments
 (0)