|
12 | 12 | <annotations>
|
13 | 13 | <features value="Wishlist"/>
|
14 | 14 | <stories value="Wishlist item configuration"/>
|
15 |
| - <title value="Admin configures an item from customer wishlist"/> |
| 15 | + <title value="Admin can configure a customer wishlist item"/> |
16 | 16 | <description value="Admin should be able to configure items from customer wishlist"/>
|
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | <testCaseId value="MC-40455"/>
|
| 19 | + <useCaseId value="MC-36575"/> |
19 | 20 | <group value="wishlist"/>
|
20 | 21 | </annotations>
|
21 | 22 | <before>
|
22 |
| - <createData entity="SimpleSubCategory" stepKey="createCategory"/> |
23 | 23 | <!-- Create the configurable product based on the data in the /data folder -->
|
24 |
| - <createData entity="ApiConfigurableProduct" stepKey="createConfigProduct"> |
25 |
| - <requiredEntity createDataKey="createCategory"/> |
26 |
| - </createData> |
| 24 | + <createData entity="ApiConfigurableProductWithOutCategory" stepKey="createConfigProduct"/> |
27 | 25 |
|
28 | 26 | <!-- Make the configurable product have two options, that are children of the default attribute set -->
|
29 | 27 | <createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/>
|
|
69 | 67 | <requiredEntity createDataKey="createConfigChildProduct2"/>
|
70 | 68 | </createData>
|
71 | 69 | <createData entity="Simple_US_Customer" stepKey="createCustomer"/>
|
| 70 | + <magentoCron groups="index" stepKey="reindexBrokenIndices"/> |
72 | 71 | </before>
|
73 | 72 | <after>
|
74 |
| - <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
75 | 73 | <deleteData createDataKey="createConfigProduct" stepKey="deleteConfigProduct"/>
|
76 | 74 | <deleteData createDataKey="createConfigChildProduct1" stepKey="deleteConfigChildProduct1"/>
|
77 | 75 | <deleteData createDataKey="createConfigChildProduct2" stepKey="deleteConfigChildProduct2"/>
|
78 | 76 | <deleteData createDataKey="createConfigProductAttribute" stepKey="deleteConfigProductAttribute"/>
|
| 77 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logout"/> |
79 | 78 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
80 | 79 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/>
|
81 |
| - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
82 |
| - <argument name="indices" value=""/> |
83 |
| - </actionGroup> |
| 80 | + <magentoCron groups="index" stepKey="reindexBrokenIndices"/> |
84 | 81 | </after>
|
85 | 82 |
|
86 | 83 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
|
87 | 84 | <argument name="Customer" value="$createCustomer$"/>
|
88 | 85 | </actionGroup>
|
89 |
| - <actionGroup ref="OpenProductFromCategoryPageActionGroup" stepKey="openProductFromCategory"> |
90 |
| - <argument name="category" value="$createCategory$"/> |
91 |
| - <argument name="product" value="$createConfigProduct$"/> |
92 |
| - </actionGroup> |
| 86 | + <amOnPage url="{{StorefrontProductPage.url($createConfigProduct.custom_attributes[url_key]$)}}" stepKey="goToProductPage"/> |
93 | 87 | <actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addToWishlistProduct">
|
94 | 88 | <argument name="productVar" value="$createConfigProduct$"/>
|
95 | 89 | </actionGroup>
|
96 |
| - <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logout"/> |
97 |
| - <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogoutBeforeCheck"/> |
98 | 90 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
99 | 91 | <actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="navigateToCustomerEditPage">
|
100 | 92 | <argument name="customer" value="$createCustomer$"/>
|
|
103 | 95 | <actionGroup ref="AdminCustomerFindWishlistItemActionGroup" stepKey="findWishlistItem">
|
104 | 96 | <argument name="productName" value="$createConfigProduct.name$"/>
|
105 | 97 | </actionGroup>
|
106 |
| - <actionGroup ref="AdminCustomerEditWishlistItemActionGroup" stepKey="editItem"> |
| 98 | + <actionGroup ref="AdminCustomerWishlistConfigureItemActionGroup" stepKey="editItem"> |
107 | 99 | <argument name="title" value="$createConfigProductAttribute.attribute[frontend_labels][0][label]$"/>
|
108 | 100 | <argument name="option" value="$getConfigAttributeOption1.label$"/>
|
109 | 101 | <argument name="quantity" value="2"/>
|
110 | 102 | </actionGroup>
|
111 |
| - <click selector="{{AdminCustomerMainActionsSection.saveButton}}" stepKey="saveCustomer"/> |
112 |
| - <seeElement selector="{{AdminCustomerMessagesSection.successMessage}}" stepKey="assertSuccessMessage"/> |
| 103 | + <click selector="{{AdminMainActionsSection.save}}" stepKey="saveCustomer"/> |
| 104 | + <waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessage"/> |
| 105 | + <seeElement selector="{{AdminMessagesSection.success}}" stepKey="assertSuccessMessage"/> |
113 | 106 | <actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="navigateToCustomerEditPage2">
|
114 | 107 | <argument name="customer" value="$createCustomer$"/>
|
115 | 108 | </actionGroup>
|
|
0 commit comments