|
57 | 57 | </actionGroup>
|
58 | 58 |
|
59 | 59 | <!-- Check products in minicart -->
|
| 60 | + <!-- Check simple product1 in minicart --> |
60 | 61 | <actionGroup ref="StorefrontOpenMinicartAndCheckSimpleProductActionGroup" stepKey="cartOpenMinicartAndCheckSimpleProduct1" after="cartAddProduct2ToCart">
|
61 | 62 | <argument name="product" value="$$createSimpleProduct1$$"/>
|
62 | 63 | </actionGroup>
|
|
73 | 74 | <actionGroup ref="StorefrontOpenMinicartAndCheckSimpleProductActionGroup" stepKey="cartOpenMinicartAndCheckSimpleProduct2" after="cartMinicartAssertSimpleProduct1PageImageNotDefault">
|
74 | 75 | <argument name="product" value="$$createSimpleProduct2$$"/>
|
75 | 76 | </actionGroup>
|
| 77 | + <!-- Check simple product2 in minicart --> |
76 | 78 | <!-- @TODO: Move Image check to action group after MQE-697 is fixed -->
|
77 | 79 | <grabAttributeFrom selector="{{StorefrontMinicartSection.productImageByName($$createSimpleProduct2.name$$)}}" userInput="src" stepKey="cartMinicartGrabSimpleProduct2ImageSrc" after="cartOpenMinicartAndCheckSimpleProduct2"/>
|
78 | 80 | <assertNotRegExp expected="'/placeholder\/thumbnail\.jpg/'" actual="$cartMinicartGrabSimpleProduct2ImageSrc" stepKey="cartMinicartAssertSimpleProduct2ImageNotDefault" after="cartMinicartGrabSimpleProduct2ImageSrc"/>
|
|
84 | 86 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartMinicartGrabSimpleProduct2PageImageSrc" after="cartAssertMinicartProduct2Page"/>
|
85 | 87 | <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartMinicartGrabSimpleProduct2PageImageSrc" stepKey="cartMinicartAssertSimpleProduct2PageImageNotDefault" after="cartMinicartGrabSimpleProduct2PageImageSrc"/>
|
86 | 88 |
|
87 |
| - <!-- @TODO: MAGETWO-80272 Move to Configurable --> |
88 |
| - <actionGroup ref="StorefrontOpenMinicartAndCheckConfigurableProductActionGroup" stepKey="cartOpenMinicartAndCheckConfigProduct" after="cartMinicartAssertSimpleProduct2PageImageNotDefault"> |
89 |
| - <argument name="product" value="$$createConfigProduct$$"/> |
90 |
| - <argument name="optionProduct" value="$$createConfigChildProduct2$$"/> |
91 |
| - </actionGroup> |
92 |
| - <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
93 |
| - <grabAttributeFrom selector="{{StorefrontMinicartSection.productImageByName($$createConfigProduct.name$$)}}" userInput="src" stepKey="cartMinicartGrabConfigProductImageSrc" after="cartOpenMinicartAndCheckConfigProduct"/> |
94 |
| - <assertNotRegExp expected="'/placeholder\/thumbnail\.jpg/'" actual="$cartMinicartGrabConfigProductImageSrc" stepKey="cartMinicartAssertConfigProductImageNotDefault" after="cartMinicartGrabConfigProductImageSrc"/> |
95 |
| - <click selector="{{StorefrontMinicartSection.productOptionsDetailsByName($$createConfigProduct.name$$)}}" stepKey="cartMinicartClickConfigProductDetails" after="cartMinicartAssertConfigProductImageNotDefault"/> |
96 |
| - <see userInput="$$createConfigProductAttributeOption2.option[store_labels][1][label]$$" selector="{{StorefrontMinicartSection.productOptionByNameAndAttribute($$createConfigProduct.name$$, $$createConfigProductAttribute.attribute[frontend_labels][0][label]$$)}}" stepKey="cartMinicartCheckConfigProductOption" after="cartMinicartClickConfigProductDetails"/> |
97 |
| - <click selector="{{StorefrontMinicartSection.productLinkByName($$createConfigProduct.name$$)}}" stepKey="cartMinicartClickConfigProduct" after="cartMinicartCheckConfigProductOption"/> |
98 |
| - <actionGroup ref="StorefrontCheckConfigurableProduct" stepKey="cartAssertMinicartConfigProductPage" after="cartMinicartClickConfigProduct"> |
99 |
| - <argument name="product" value="$$createConfigProduct$$"/> |
100 |
| - <argument name="optionProduct" value="$$createConfigChildProduct1$$"/> |
101 |
| - </actionGroup> |
102 |
| - <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
103 |
| - <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartMinicartGrabConfigProductPageImageSrc" after="cartAssertMinicartConfigProductPage"/> |
104 |
| - <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartMinicartGrabConfigProductPageImageSrc" stepKey="cartMinicartAssertConfigProductPageImageNotDefault" after="cartMinicartGrabConfigProductPageImageSrc"/> |
105 |
| - |
106 | 89 | <!-- Check products in cart -->
|
107 |
| - <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="cartOpenCart" after="cartMinicartAssertConfigProductPageImageNotDefault"/> |
| 90 | + <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="cartOpenCart" after="cartMinicartAssertSimpleProduct2PageImageNotDefault"/> |
108 | 91 | <actionGroup ref="StorefrontCheckCartActionGroup" stepKey="cartAssertCart" after="cartOpenCart">
|
109 | 92 | <!-- @TODO: Change to scalar value after MQE-498 is implemented -->
|
110 | 93 | <argument name="subtotal" value="E2EB2CQuote.subtotal"/>
|
|
116 | 99 | <argument name="total" value="E2EB2CQuote.total"/>
|
117 | 100 | </actionGroup>
|
118 | 101 |
|
| 102 | + <!-- Check simple product1 in cart --> |
119 | 103 | <actionGroup ref="StorefrontCheckCartSimpleProductActionGroup" stepKey="cartAssertCartSimpleProduct1" after="cartAssertCart">
|
120 | 104 | <argument name="product" value="$$createSimpleProduct1$$"/>
|
121 | 105 | <!-- @TODO: Change to scalar value after MQE-498 is implemented -->
|
|
132 | 116 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartCartGrabSimpleProduct2PageImageSrc1" after="cartAssertCartProduct1Page"/>
|
133 | 117 | <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartCartGrabSimpleProduct2PageImageSrc1" stepKey="cartCartAssertSimpleProduct2PageImageNotDefault1" after="cartCartGrabSimpleProduct2PageImageSrc1"/>
|
134 | 118 |
|
| 119 | + <!-- Check simple product2 in cart --> |
135 | 120 | <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="cartOpenCart1" after="cartCartAssertSimpleProduct2PageImageNotDefault1"/>
|
136 | 121 | <actionGroup ref="StorefrontCheckCartSimpleProductActionGroup" stepKey="cartAssertCartSimpleProduct2" after="cartOpenCart1">
|
137 | 122 | <argument name="product" value="$$createSimpleProduct2$$"/>
|
|
148 | 133 | <!-- @TODO: Move Image check to action group after MQE-697 is fixed -->
|
149 | 134 | <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartCartGrabSimpleProduct2PageImageSrc2" after="cartAssertCartProduct2Page"/>
|
150 | 135 | <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartCartGrabSimpleProduct2PageImageSrc2" stepKey="cartCartAssertSimpleProduct2PageImageNotDefault2" after="cartCartGrabSimpleProduct2PageImageSrc2"/>
|
151 |
| - |
152 |
| - <!-- @TODO: MAGETWO-80272 Move to Configurable --> |
153 |
| - <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="cartOpenCart2" after="cartCartAssertSimpleProduct2PageImageNotDefault2"/> |
154 |
| - <actionGroup ref="StorefrontCheckCartConfigurableProductActionGroup" stepKey="cartAssertCartConfigProduct" after="cartOpenCart2"> |
155 |
| - <argument name="product" value="$$createConfigProduct$$"/> |
156 |
| - <argument name="optionProduct" value="$$createConfigChildProduct2$$"/> |
157 |
| - <!-- @TODO: Change to scalar value after MQE-498 is implemented --> |
158 |
| - <argument name="productQuantity" value="CONST.one"/> |
159 |
| - </actionGroup> |
160 |
| - <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
161 |
| - <grabAttributeFrom selector="{{CheckoutCartProductSection.ProductImageByName($$createConfigProduct.name$$)}}" userInput="src" stepKey="cartCartGrabConfigProduct2ImageSrc" after="cartAssertCartConfigProduct"/> |
162 |
| - <assertNotRegExp expected="'/placeholder\/small_image\.jpg/'" actual="$cartCartGrabConfigProduct2ImageSrc" stepKey="cartCartAssertConfigProduct2ImageNotDefault" after="cartCartGrabConfigProduct2ImageSrc"/> |
163 |
| - <see userInput="$$createConfigProductAttributeOption2.option[store_labels][1][label]$$" selector="{{CheckoutCartProductSection.ProductOptionByNameAndAttribute($$createConfigProduct.name$$, $$createConfigProductAttribute.attribute[frontend_labels][0][label]$$)}}" stepKey="cartCheckConfigProductOption" after="cartCartAssertConfigProduct2ImageNotDefault"/> |
164 |
| - <click selector="{{CheckoutCartProductSection.ProductLinkByName($$createConfigProduct.name$$)}}" stepKey="cartClickCartConfigProduct" after="cartCheckConfigProductOption"/> |
165 |
| - <actionGroup ref="StorefrontCheckConfigurableProduct" stepKey="cartAssertCartConfigProductPage" after="cartClickCartConfigProduct"> |
166 |
| - <argument name="product" value="$$createConfigProduct$$"/> |
167 |
| - <argument name="optionProduct" value="$$createConfigChildProduct1$$"/> |
168 |
| - </actionGroup> |
169 |
| - <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
170 |
| - <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartCartGrabConfigProductPageImageSrc" after="cartAssertCartConfigProductPage"/> |
171 |
| - <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartCartGrabConfigProductPageImageSrc" stepKey="cartCartAssertConfigProductPageImageNotDefault" after="cartCartGrabConfigProductPageImageSrc"/> |
172 |
| - <comment userInput="End of adding products to cart" stepKey="endOfAddingProductsToCart" after="cartCartAssertConfigProductPageImageNotDefault" /> |
| 136 | + <comment userInput="End of adding products to cart" stepKey="endOfAddingProductsToCart" after="cartCartAssertSimpleProduct2PageImageNotDefault2" /> |
173 | 137 |
|
174 | 138 | <!-- Step 6: Check out -->
|
175 | 139 | <comment userInput="Start of checking out" stepKey="startOfCheckingOut" after="endOfUsingCouponCode" />
|
|
0 commit comments