|
74 | 74 | <click selector="{{page.conditionsListConditionPlaceholder}}" stepKey="revealCategoryInput"/>
|
75 | 75 | <fillField selector="{{page.conditionsListConditionInput}}" userInput="{{category}}" stepKey="fillCategoryField"/>
|
76 | 76 | </actionGroup>
|
| 77 | + <actionGroup name="clickProductImageInProductsOnStorefront"> |
| 78 | + <arguments> |
| 79 | + <argument name="product" type="string"/> |
| 80 | + <argument name="index" defaultValue="1" type="string"/> |
| 81 | + </arguments> |
| 82 | + <waitForElementVisible selector="{{ProductsOnStorefront.productImage(index)}}" stepKey="waitForProductImage"/> |
| 83 | + <click selector="{{ProductsOnStorefront.productImage(index)}}" stepKey="clickProductImage"/> |
| 84 | + <waitForPageLoad stepKey="waitForProductPageToLoad"/> |
| 85 | + <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{product}}" stepKey="seeProductName"/> |
| 86 | + </actionGroup> |
| 87 | + <actionGroup name="clickProductNameInProductsOnStorefront"> |
| 88 | + <arguments> |
| 89 | + <argument name="product" type="string"/> |
| 90 | + <argument name="index" defaultValue="1" type="string"/> |
| 91 | + </arguments> |
| 92 | + <waitForElementVisible selector="{{ProductsOnStorefront.productName(index, product)}}" stepKey="waitForProductName"/> |
| 93 | + <click selector="{{ProductsOnStorefront.productName(index, product)}}" stepKey="clickProductName"/> |
| 94 | + <waitForPageLoad stepKey="waitForProductPageToLoad"/> |
| 95 | + <see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{product}}" stepKey="seeProductName"/> |
| 96 | + </actionGroup> |
| 97 | + <actionGroup name="clickProductAddToCartInProductsOnStorefront"> |
| 98 | + <arguments> |
| 99 | + <argument name="product" type="string"/> |
| 100 | + <argument name="index" defaultValue="1" type="string"/> |
| 101 | + </arguments> |
| 102 | + <moveMouseOver selector="{{ProductsOnStorefront.productImage(index)}}" stepKey="moveMouseOverProduct"/> |
| 103 | + <click selector="{{ProductsOnStorefront.productAddToCart(index)}}" stepKey="clickProductAddToCart"/> |
| 104 | + <waitForPageLoad stepKey="waitForProductPageToLoad"/> |
| 105 | + <see userInput="You added {{product}} to your shopping cart." stepKey="seeAddToCartSuccessMessage"/> |
| 106 | + </actionGroup> |
| 107 | + <actionGroup name="clickProductAddToCompareInProductsOnStorefront"> |
| 108 | + <arguments> |
| 109 | + <argument name="product" type="string"/> |
| 110 | + <argument name="index" defaultValue="1" type="string"/> |
| 111 | + </arguments> |
| 112 | + <moveMouseOver selector="{{ProductsOnStorefront.productImage(index)}}" stepKey="moveMouseOverProduct"/> |
| 113 | + <click selector="{{ProductsOnStorefront.productAddToCompare(index)}}" stepKey="clickProductAddToCompare"/> |
| 114 | + <waitForPageLoad stepKey="waitForProductPageToLoad"/> |
| 115 | + <see userInput="You added product {{product}} to the comparison list." stepKey="seeComparisonListSuccessMessage"/> |
| 116 | + </actionGroup> |
| 117 | + <actionGroup name="clickProductAddToWishListInProductsOnStorefront"> |
| 118 | + <arguments> |
| 119 | + <argument name="index" defaultValue="1" type="string"/> |
| 120 | + </arguments> |
| 121 | + <moveMouseOver selector="{{ProductsOnStorefront.productImage(index)}}" stepKey="moveMouseOverProduct"/> |
| 122 | + <click selector="{{ProductsOnStorefront.productAddToWishList(index)}}" stepKey="clickProductAddToWishList"/> |
| 123 | + <waitForPageLoad stepKey="waitForProductPageToLoad"/> |
| 124 | + <see userInput="You must login or register to add items to your wishlist." stepKey="seeWishListSuccessMessage"/> |
| 125 | + </actionGroup> |
77 | 126 | </actionGroups>
|
0 commit comments