|
20 | 20 | <seeCurrentUrlMatches regex="~/wishlist_id/\d+/$~" stepKey="seeCurrentUrlMatches"/> |
21 | 21 | </actionGroup> |
22 | 22 |
|
| 23 | + <!-- Add Product to wishlist from the product page and check message --> |
| 24 | + <actionGroup name="StorefrontCustomerAddProductToWishlistActionGroup"> |
| 25 | + <arguments> |
| 26 | + <argument name="productVar"/> |
| 27 | + </arguments> |
| 28 | + <click selector="{{StorefrontProductInfoMainSection.productAddToWishlist}}" stepKey="addProductToWishlistClickAddToWishlist" /> |
| 29 | + <waitForElement selector="{{StorefrontCustomerWishlistSection.successMsg}}" time="30" stepKey="addProductToWishlistWaitForSuccessMessage"/> |
| 30 | + <see selector="{{StorefrontCustomerWishlistSection.successMsg}}" userInput="{{productVar.name}} has been added to your Wish List." stepKey="addProductToWishlistSeeProductNameAddedToWishlist"/> |
| 31 | + <seeCurrentUrlMatches regex="~/wishlist_id/\d+/$~" stepKey="seeCurrentUrlMatches"/> |
| 32 | + </actionGroup> |
| 33 | + |
| 34 | + <!-- Check product in wishlist --> |
| 35 | + <actionGroup name="StorefrontCustomerCheckProductInWishlist"> |
| 36 | + <arguments> |
| 37 | + <argument name="productVar"/> |
| 38 | + </arguments> |
| 39 | + <waitForElement selector="{{StorefrontCustomerWishlistProductSection.productTitleByName(productVar.name)}}" time="30" stepKey="assertWishlistProductName"/> |
| 40 | + <see userInput="${{productVar.price}}.00" selector="{{StorefrontCustomerWishlistProductSection.productPriceByName(productVar.name)}}" stepKey="assertWishlistProductPrice"/> |
| 41 | + <moveMouseOver selector="{{StorefrontCustomerWishlistProductSection.productInfoByName(productVar.name)}}" stepKey="wishlistMoveMouseOverProduct" /> |
| 42 | + <seeElement selector="{{StorefrontCustomerWishlistProductSection.productAddToCartByName(productVar.name)}}" stepKey="assertWishlistAddToCart" /> |
| 43 | + <seeElement selector="{{StorefrontCustomerWishlistProductSection.productImageByName(productVar.name)}}" stepKey="assertWishlistProductImage" /> |
| 44 | + </actionGroup> |
| 45 | + |
23 | 46 | <!-- Check product in wishlist sidebar --> |
24 | 47 | <actionGroup name="StorefrontCustomerCheckProductInWishlistSidebar"> |
25 | 48 | <arguments> |
|
50 | 73 | <waitForElement selector="{{StorefrontCategoryMainSection.SuccessMsg}}" time="30" stepKey="addProductToCartFromWishlistUsingSidebarWaitForSuccessMessage"/> |
51 | 74 | <see selector="{{StorefrontCategoryMainSection.SuccessMsg}}" userInput="You added {{product.name}} to your shopping cart." stepKey="addProductToCartFromWishlistUsingSidebarSeeProductNameAddedToCartFromWishlist"/> |
52 | 75 | </actionGroup> |
| 76 | + |
| 77 | + <actionGroup name="StorefrontCustomerEditProductInWishlist"> |
| 78 | + <arguments> |
| 79 | + <argument name="product"/> |
| 80 | + <argument name="description" type="string"/> |
| 81 | + <argument name="quantity" type="string"/> |
| 82 | + </arguments> |
| 83 | + <moveMouseOver selector="{{StorefrontCustomerWishlistProductSection.productInfoByName(product.name)}}" stepKey="mouseOverOnProduct"/> |
| 84 | + <fillField selector="{{StorefrontCustomerWishlistProductSection.productDescription(product.name)}}" userInput="{{description}}" stepKey="fillDescription"/> |
| 85 | + <fillField selector="{{StorefrontCustomerWishlistProductSection.productQuantity(product.name)}}" userInput="{{quantity}}" stepKey="fillQuantity"/> |
| 86 | + <moveMouseOver selector="{{StorefrontCustomerWishlistProductSection.productAddAllToCart}}" stepKey="mouseOver"/> |
| 87 | + <click selector="{{StorefrontCustomerWishlistProductSection.productUpdateWishList}}" stepKey="submitUpdateWishlist"/> |
| 88 | + <see selector="{{StorefrontMessagesSection.success}}" userInput="{{product.name}} has been updated in your Wish List." stepKey="successMessage"/> |
| 89 | + </actionGroup> |
53 | 90 | </actionGroups> |
0 commit comments