|
18 | 18 | <group value="wishlist"/> |
19 | 19 | </annotations> |
20 | 20 | <before> |
21 | | - <!-- Pre-condition 1: Create product--> |
| 21 | + <!-- Pre-condition 1,2: Create product, customer --> |
22 | 22 | <createData entity="SimpleProduct" stepKey="createProduct"/> |
23 | | - <!-- Pre-condition 2: Create customer--> |
24 | 23 | <createData entity="Simple_US_Customer" stepKey="createCustomer"/> |
25 | 24 | </before> |
26 | 25 | <after> |
|
30 | 29 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
31 | 30 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
32 | 31 | </after> |
33 | | - <!-- Step 1:Log in as a customer on storefront. --> |
| 32 | + <!-- Step 1: Log in as a customer on storefront. --> |
34 | 33 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount"> |
35 | 34 | <argument name="Customer" value="$createCustomer$"/> |
36 | 35 | </actionGroup> |
|
42 | 41 | <actionGroup ref="StorefrontCustomerAddProductToWishlistActionGroup" stepKey="addToWishlistProduct"> |
43 | 42 | <argument name="productVar" value="$createProduct$"/> |
44 | 43 | </actionGroup> |
45 | | - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
46 | | - <argument name="indices" value=""/> |
47 | | - </actionGroup> |
48 | | - <actionGroup ref="CliCacheFlushActionGroup" stepKey="cleanCache"> |
49 | | - <argument name="tags" value=""/> |
50 | | - </actionGroup> |
51 | 44 | <!-- Step 3: Navigate to Store front home page--> |
52 | 45 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/> |
53 | 46 | <waitForPageLoad stepKey="waitToLoadHomePage"/> |
54 | 47 | <!-- Step 4: Click on customer menu--> |
55 | 48 | <waitForElementClickable selector="{{LoggedInCustomerHeaderLinksSection.customerDropdownMenu}}" stepKey="waitToOpenCustomerDropdownMenu"/> |
56 | 49 | <click selector="{{LoggedInCustomerHeaderLinksSection.customerDropdownMenu}}" stepKey="openCustomerDropdownMenu"/> |
57 | 50 | <waitForPageLoad stepKey="waitToLoadCustomerDropdownMenu"/> |
58 | | - <!-- Step 4 assertion:The wishlist item count should display--> |
| 51 | + <!-- Step 4 assertion: The wishlist item count should display--> |
59 | 52 | <waitForElementVisible selector="{{StorefrontCustomerWishlistProductSection.wishListLink}}" stepKey="wishListLink"/> |
60 | 53 | <waitForText userInput="1 item" selector="{{StorefrontCustomerWishlistProductSection.wishListCount}}" stepKey="seeWishListCount"/> |
61 | 54 | </test> |
|
0 commit comments