|
184 | 184 | <argument name="productVar" value="$$createSimpleProduct2$$"/>
|
185 | 185 | </actionGroup>
|
186 | 186 |
|
| 187 | + <comment userInput="Place order with check money order payment" stepKey="commentPlaceOrderWithCheckMoneyOrderPayment" after="guestCheckoutCheckSimpleProduct2InCartItems" /> |
| 188 | + <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="guestSelectCheckMoneyOrderPayment" after="commentPlaceOrderWithCheckMoneyOrderPayment"/> |
| 189 | + <actionGroup ref="CheckBillingAddressInCheckoutActionGroup" stepKey="guestSeeBillingAddress" after="guestSelectCheckMoneyOrderPayment"> |
| 190 | + <argument name="customerVar" value="CustomerEntityOne" /> |
| 191 | + <argument name="customerAddressVar" value="CustomerAddressSimple" /> |
| 192 | + </actionGroup> |
| 193 | + <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="guestPlaceorder" after="guestSeeBillingAddress"> |
| 194 | + <argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage" /> |
| 195 | + <argument name="emailYouMessage" value="CONST.successCheckoutEmailYouMessage" /> |
| 196 | + </actionGroup> |
| 197 | + <comment userInput="End of checking out" stepKey="endOfCheckingOut" after="guestPlaceorder" /> |
| 198 | + </test> |
| 199 | + <test name="EndToEndB2CGuestUserMysqlTest"> |
| 200 | + <!-- Step 3: User adds products to cart --> |
| 201 | + <comment userInput="Start of adding products to cart" stepKey="startOfAddingProductsToCart" after="endOfBrowsingCatalog"/> |
| 202 | + <!-- Add Simple Product 1 to cart --> |
| 203 | + <comment userInput="Add Simple Product 1 to cart" stepKey="commentAddSimpleProduct1ToCart" after="startOfAddingProductsToCart" /> |
| 204 | + <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="cartClickCategory" after="commentAddSimpleProduct1ToCart"/> |
| 205 | + <waitForLoadingMaskToDisappear stepKey="waitForCartCategoryloaded" after="cartClickCategory"/> |
| 206 | + <actionGroup ref="StorefrontCheckCategoryActionGroup" stepKey="cartAssertCategory" after="waitForCartCategoryloaded"> |
| 207 | + <argument name="category" value="$$createCategory$$"/> |
| 208 | + <argument name="productCount" value="3"/> |
| 209 | + </actionGroup> |
| 210 | + <actionGroup ref="StorefrontCheckCategorySimpleProduct" stepKey="cartAssertSimpleProduct1" after="cartAssertCategory"> |
| 211 | + <argument name="product" value="$$createSimpleProduct1$$"/> |
| 212 | + </actionGroup> |
| 213 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 214 | + <grabAttributeFrom selector="{{StorefrontCategoryProductSection.ProductImageByName($$createSimpleProduct1.name$$)}}" userInput="src" stepKey="cartGrabSimpleProduct1ImageSrc" after="cartAssertSimpleProduct1"/> |
| 215 | + <assertNotRegExp expected="'/placeholder\/small_image\.jpg/'" actual="$cartGrabSimpleProduct1ImageSrc" stepKey="cartAssertSimpleProduct1ImageNotDefault" after="cartGrabSimpleProduct1ImageSrc"/> |
| 216 | + <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createSimpleProduct1.name$$)}}" stepKey="cartClickSimpleProduct1" after="cartAssertSimpleProduct1ImageNotDefault"/> |
| 217 | + <waitForLoadingMaskToDisappear stepKey="waitForCartSimpleProduct1loaded" after="cartClickSimpleProduct1"/> |
| 218 | + <actionGroup ref="StorefrontCheckSimpleProduct" stepKey="cartAssertProduct1Page" after="waitForCartSimpleProduct1loaded"> |
| 219 | + <argument name="product" value="$$createSimpleProduct1$$"/> |
| 220 | + </actionGroup> |
| 221 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 222 | + <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartGrabSimpleProduct1PageImageSrc" after="cartAssertProduct1Page"/> |
| 223 | + <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartGrabSimpleProduct1PageImageSrc" stepKey="cartAssertSimpleProduct1PageImageNotDefault" after="cartGrabSimpleProduct1PageImageSrc"/> |
| 224 | + <actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="cartAddProduct1ToCart" after="cartAssertSimpleProduct1PageImageNotDefault"> |
| 225 | + <argument name="product" value="$$createSimpleProduct1$$"/> |
| 226 | + <argument name="productCount" value="1"/> |
| 227 | + </actionGroup> |
| 228 | + |
| 229 | + <!-- Add Simple Product 2 to cart --> |
| 230 | + <comment userInput="Add Simple Product 2 to cart" stepKey="commentAddSimpleProduct2ToCart" after="cartAddProduct1ToCart" /> |
| 231 | + <click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createCategory.name$$)}}" stepKey="cartClickCategory1" after="commentAddSimpleProduct2ToCart"/> |
| 232 | + <waitForLoadingMaskToDisappear stepKey="waitForCartCategory1loaded" after="cartClickCategory1"/> |
| 233 | + <actionGroup ref="StorefrontCheckCategoryActionGroup" stepKey="cartAssertCategory1ForSimpleProduct2" after="waitForCartCategory1loaded"> |
| 234 | + <argument name="category" value="$$createCategory$$"/> |
| 235 | + <argument name="productCount" value="3"/> |
| 236 | + </actionGroup> |
| 237 | + <actionGroup ref="StorefrontCheckCategorySimpleProduct" stepKey="cartAssertSimpleProduct2" after="cartAssertCategory1ForSimpleProduct2"> |
| 238 | + <argument name="product" value="$$createSimpleProduct2$$"/> |
| 239 | + </actionGroup> |
| 240 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 241 | + <grabAttributeFrom selector="{{StorefrontCategoryProductSection.ProductImageByName($$createSimpleProduct2.name$$)}}" userInput="src" stepKey="cartGrabSimpleProduct2ImageSrc" after="cartAssertSimpleProduct2"/> |
| 242 | + <assertNotRegExp expected="'/placeholder\/small_image\.jpg/'" actual="$cartGrabSimpleProduct2ImageSrc" stepKey="cartAssertSimpleProduct2ImageNotDefault" after="cartGrabSimpleProduct2ImageSrc"/> |
| 243 | + <actionGroup ref="StorefrontAddCategoryProductToCartActionGroup" stepKey="cartAddProduct2ToCart" after="cartAssertSimpleProduct2ImageNotDefault"> |
| 244 | + <argument name="product" value="$$createSimpleProduct2$$"/> |
| 245 | + <!-- @TODO: Change to scalar value after MQE-498 is implemented --> |
| 246 | + <argument name="productCount" value="CONST.two"/> |
| 247 | + </actionGroup> |
| 248 | + |
| 249 | + <!-- Check products in minicart --> |
| 250 | + <!-- Check simple product 1 in minicart --> |
| 251 | + <comment userInput="Check simple product 1 in minicart" stepKey="commentCheckSimpleProduct1InMinicart" after="cartAddProduct2ToCart"/> |
| 252 | + <actionGroup ref="StorefrontOpenMinicartAndCheckSimpleProductActionGroup" stepKey="cartOpenMinicartAndCheckSimpleProduct1" after="commentCheckSimpleProduct1InMinicart"> |
| 253 | + <argument name="product" value="$$createSimpleProduct1$$"/> |
| 254 | + </actionGroup> |
| 255 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 256 | + <grabAttributeFrom selector="{{StorefrontMinicartSection.productImageByName($$createSimpleProduct1.name$$)}}" userInput="src" stepKey="cartMinicartGrabSimpleProduct1ImageSrc" after="cartOpenMinicartAndCheckSimpleProduct1"/> |
| 257 | + <assertNotRegExp expected="'/placeholder\/thumbnail\.jpg/'" actual="$cartMinicartGrabSimpleProduct1ImageSrc" stepKey="cartMinicartAssertSimpleProduct1ImageNotDefault" after="cartMinicartGrabSimpleProduct1ImageSrc"/> |
| 258 | + <click selector="{{StorefrontMinicartSection.productLinkByName($$createSimpleProduct1.name$$)}}" stepKey="cartMinicartClickSimpleProduct1" after="cartMinicartAssertSimpleProduct1ImageNotDefault"/> |
| 259 | + <waitForLoadingMaskToDisappear stepKey="waitForMinicartSimpleProduct1loaded" after="cartMinicartClickSimpleProduct1"/> |
| 260 | + <actionGroup ref="StorefrontCheckSimpleProduct" stepKey="cartAssertMinicartProduct1Page" after="waitForMinicartSimpleProduct1loaded"> |
| 261 | + <argument name="product" value="$$createSimpleProduct1$$"/> |
| 262 | + </actionGroup> |
| 263 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 264 | + <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartMinicartGrabSimpleProduct1PageImageSrc" after="cartAssertMinicartProduct1Page"/> |
| 265 | + <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartMinicartGrabSimpleProduct1PageImageSrc" stepKey="cartMinicartAssertSimpleProduct1PageImageNotDefault" after="cartMinicartGrabSimpleProduct1PageImageSrc"/> |
| 266 | + <actionGroup ref="StorefrontOpenMinicartAndCheckSimpleProductActionGroup" stepKey="cartOpenMinicartAndCheckSimpleProduct2" after="cartMinicartAssertSimpleProduct1PageImageNotDefault"> |
| 267 | + <argument name="product" value="$$createSimpleProduct2$$"/> |
| 268 | + </actionGroup> |
| 269 | + <!-- Check simple product2 in minicart --> |
| 270 | + <comment userInput="Check simple product 2 in minicart" stepKey="commentCheckSimpleProduct2InMinicart" after="cartOpenMinicartAndCheckSimpleProduct2"/> |
| 271 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 272 | + <grabAttributeFrom selector="{{StorefrontMinicartSection.productImageByName($$createSimpleProduct2.name$$)}}" userInput="src" stepKey="cartMinicartGrabSimpleProduct2ImageSrc" after="commentCheckSimpleProduct2InMinicart"/> |
| 273 | + <assertNotRegExp expected="'/placeholder\/thumbnail\.jpg/'" actual="$cartMinicartGrabSimpleProduct2ImageSrc" stepKey="cartMinicartAssertSimpleProduct2ImageNotDefault" after="cartMinicartGrabSimpleProduct2ImageSrc"/> |
| 274 | + <click selector="{{StorefrontMinicartSection.productLinkByName($$createSimpleProduct2.name$$)}}" stepKey="cartMinicartClickSimpleProduct2" after="cartMinicartAssertSimpleProduct2ImageNotDefault"/> |
| 275 | + <waitForLoadingMaskToDisappear stepKey="waitForMinicartSimpleProduct2loaded" after="cartMinicartClickSimpleProduct2"/> |
| 276 | + <actionGroup ref="StorefrontCheckSimpleProduct" stepKey="cartAssertMinicartProduct2Page" after="waitForMinicartSimpleProduct2loaded"> |
| 277 | + <argument name="product" value="$$createSimpleProduct2$$"/> |
| 278 | + </actionGroup> |
| 279 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 280 | + <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartMinicartGrabSimpleProduct2PageImageSrc" after="cartAssertMinicartProduct2Page"/> |
| 281 | + <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartMinicartGrabSimpleProduct2PageImageSrc" stepKey="cartMinicartAssertSimpleProduct2PageImageNotDefault" after="cartMinicartGrabSimpleProduct2PageImageSrc"/> |
| 282 | + |
| 283 | + <!-- Check products in cart --> |
| 284 | + <comment userInput="Check cart information" stepKey="commentCheckCartInformation" after="cartMinicartAssertSimpleProduct2PageImageNotDefault" /> |
| 285 | + <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="cartOpenCart" after="commentCheckCartInformation"/> |
| 286 | + <actionGroup ref="StorefrontCheckCartActionGroup" stepKey="cartAssertCart" after="cartOpenCart"> |
| 287 | + <argument name="subtotal" value="480.00"/> |
| 288 | + <argument name="shipping" value="15.00"/> |
| 289 | + <argument name="shippingMethod" value="Flat Rate - Fixed"/> |
| 290 | + <argument name="total" value="495.00"/> |
| 291 | + </actionGroup> |
| 292 | + |
| 293 | + <!-- Check simple product 1 in cart --> |
| 294 | + <comment userInput="Check simple product 1 in cart" stepKey="commentCheckSimpleProduct1InCart" after="cartAssertCart"/> |
| 295 | + <actionGroup ref="StorefrontCheckCartSimpleProductActionGroup" stepKey="cartAssertCartSimpleProduct1" after="commentCheckSimpleProduct1InCart"> |
| 296 | + <argument name="product" value="$$createSimpleProduct1$$"/> |
| 297 | + <!-- @TODO: Change to scalar value after MQE-498 is implemented --> |
| 298 | + <argument name="productQuantity" value="CONST.one"/> |
| 299 | + </actionGroup> |
| 300 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 301 | + <grabAttributeFrom selector="{{CheckoutCartProductSection.ProductImageByName($$createSimpleProduct1.name$$)}}" userInput="src" stepKey="cartCartGrabSimpleProduct1ImageSrc" after="cartAssertCartSimpleProduct1"/> |
| 302 | + <assertNotRegExp expected="'/placeholder\/small_image\.jpg/'" actual="$cartCartGrabSimpleProduct1ImageSrc" stepKey="cartCartAssertSimpleProduct1ImageNotDefault" after="cartCartGrabSimpleProduct1ImageSrc"/> |
| 303 | + <click selector="{{CheckoutCartProductSection.ProductLinkByName($$createSimpleProduct1.name$$)}}" stepKey="cartClickCartSimpleProduct1" after="cartCartAssertSimpleProduct1ImageNotDefault"/> |
| 304 | + <waitForLoadingMaskToDisappear stepKey="waitForCartSimpleProduct1loadedAgain" after="cartClickCartSimpleProduct1"/> |
| 305 | + <actionGroup ref="StorefrontCheckSimpleProduct" stepKey="cartAssertCartProduct1Page" after="waitForCartSimpleProduct1loadedAgain"> |
| 306 | + <argument name="product" value="$$createSimpleProduct1$$"/> |
| 307 | + </actionGroup> |
| 308 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 309 | + <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartCartGrabSimpleProduct2PageImageSrc1" after="cartAssertCartProduct1Page"/> |
| 310 | + <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartCartGrabSimpleProduct2PageImageSrc1" stepKey="cartCartAssertSimpleProduct2PageImageNotDefault1" after="cartCartGrabSimpleProduct2PageImageSrc1"/> |
| 311 | + |
| 312 | + <!-- Check simple product 2 in cart --> |
| 313 | + <comment userInput="Check simple product 2 in cart" stepKey="commentCheckSimpleProduct2InCart" after="cartCartAssertSimpleProduct2PageImageNotDefault1"/> |
| 314 | + <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="cartOpenCart1" after="commentCheckSimpleProduct2InCart"/> |
| 315 | + <actionGroup ref="StorefrontCheckCartSimpleProductActionGroup" stepKey="cartAssertCartSimpleProduct2" after="cartOpenCart1"> |
| 316 | + <argument name="product" value="$$createSimpleProduct2$$"/> |
| 317 | + <!-- @TODO: Change to scalar value after MQE-498 is implemented --> |
| 318 | + <argument name="productQuantity" value="CONST.one"/> |
| 319 | + </actionGroup> |
| 320 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 321 | + <grabAttributeFrom selector="{{CheckoutCartProductSection.ProductImageByName($$createSimpleProduct2.name$$)}}" userInput="src" stepKey="cartCartGrabSimpleProduct2ImageSrc" after="cartAssertCartSimpleProduct2"/> |
| 322 | + <assertNotRegExp expected="'/placeholder\/small_image\.jpg/'" actual="$cartCartGrabSimpleProduct2ImageSrc" stepKey="cartCartAssertSimpleProduct2ImageNotDefault" after="cartCartGrabSimpleProduct2ImageSrc"/> |
| 323 | + <click selector="{{CheckoutCartProductSection.ProductLinkByName($$createSimpleProduct2.name$$)}}" stepKey="cartClickCartSimpleProduct2" after="cartCartAssertSimpleProduct2ImageNotDefault"/> |
| 324 | + <waitForLoadingMaskToDisappear stepKey="waitForCartSimpleProduct2loaded" after="cartClickCartSimpleProduct2"/> |
| 325 | + <actionGroup ref="StorefrontCheckSimpleProduct" stepKey="cartAssertCartProduct2Page" after="waitForCartSimpleProduct2loaded"> |
| 326 | + <argument name="product" value="$$createSimpleProduct2$$"/> |
| 327 | + </actionGroup> |
| 328 | + <!-- @TODO: Move Image check to action group after MQE-697 is fixed --> |
| 329 | + <grabAttributeFrom selector="{{StorefrontProductInfoMainSection.productImage}}" userInput="src" stepKey="cartCartGrabSimpleProduct2PageImageSrc2" after="cartAssertCartProduct2Page"/> |
| 330 | + <assertNotRegExp expected="'/placeholder\/image\.jpg/'" actual="$cartCartGrabSimpleProduct2PageImageSrc2" stepKey="cartCartAssertSimpleProduct2PageImageNotDefault2" after="cartCartGrabSimpleProduct2PageImageSrc2"/> |
| 331 | + <comment userInput="End of adding products to cart" stepKey="endOfAddingProductsToCart" after="cartCartAssertSimpleProduct2PageImageNotDefault2" /> |
| 332 | + |
| 333 | + <!-- Step 6: Check out --> |
| 334 | + <comment userInput="Start of checking out" stepKey="startOfCheckingOut" after="endOfUsingCouponCode" /> |
| 335 | + <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="guestGoToCheckoutFromMinicart" after="startOfCheckingOut"/> |
| 336 | + <actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShippingSection" after="guestGoToCheckoutFromMinicart"> |
| 337 | + <argument name="customerVar" value="CustomerEntityOne" /> |
| 338 | + <argument name="customerAddressVar" value="CustomerAddressSimple" /> |
| 339 | + </actionGroup> |
| 340 | + |
| 341 | + <!-- Check order summary in checkout --> |
| 342 | + <comment userInput="Check order summary in checkout" stepKey="commentCheckOrderSummaryInCheckout" after="guestCheckoutFillingShippingSection" /> |
| 343 | + <actionGroup ref="CheckOrderSummaryInCheckoutActionGroup" stepKey="guestCheckoutCheckOrderSummary" after="commentCheckOrderSummaryInCheckout"> |
| 344 | + <argument name="subtotal" value="480.00"/> |
| 345 | + <argument name="shippingTotal" value="15.00"/> |
| 346 | + <argument name="shippingMethod" value="Flat Rate - Fixed"/> |
| 347 | + <argument name="total" value="495.00"/> |
| 348 | + </actionGroup> |
| 349 | + |
| 350 | + <!-- Check ship to information in checkout --> |
| 351 | + <comment userInput="Check ship to information in checkout" stepKey="commentCheckShipToInformationInCheckout" after="guestCheckoutCheckOrderSummary" /> |
| 352 | + <actionGroup ref="CheckShipToInformationInCheckoutActionGroup" stepKey="guestCheckoutCheckShipToInformation" after="commentCheckShipToInformationInCheckout"> |
| 353 | + <argument name="customerVar" value="CustomerEntityOne" /> |
| 354 | + <argument name="customerAddressVar" value="CustomerAddressSimple" /> |
| 355 | + </actionGroup> |
| 356 | + |
| 357 | + <!-- Check shipping method in checkout --> |
| 358 | + <comment userInput="Check shipping method in checkout" stepKey="commentCheckShippingMethodInCheckout" after="guestCheckoutCheckShipToInformation" /> |
| 359 | + <actionGroup ref="CheckShippingMethodInCheckoutActionGroup" stepKey="guestCheckoutCheckShippingMethod" after="commentCheckShippingMethodInCheckout"> |
| 360 | + <argument name="shippingMethod" value="E2EB2CQuote.shippingMethod" /> |
| 361 | + </actionGroup> |
| 362 | + |
| 363 | + <!-- Verify Simple Product 1 is in checkout cart items --> |
| 364 | + <comment userInput="Verify Simple Product 1 is in checkout cart items" stepKey="commentVerifySimpleProduct1IsInCheckoutCartItems" after="guestCheckoutCheckShippingMethod" /> |
| 365 | + <actionGroup ref="CheckProductInCheckoutCartItemsActionGroup" stepKey="guestCheckoutCheckSimpleProduct1InCartItems" after="commentVerifySimpleProduct1IsInCheckoutCartItems"> |
| 366 | + <argument name="productVar" value="$$createSimpleProduct1$$"/> |
| 367 | + </actionGroup> |
| 368 | + |
| 369 | + <!-- Verify Simple Product 2 is in checkout cart items --> |
| 370 | + <comment userInput="Verify Simple Product 2 is in checkout cart items" stepKey="commentVerifySimpleProduct2IsInCheckoutCartItems" after="guestCheckoutCheckSimpleProduct1InCartItems" /> |
| 371 | + <actionGroup ref="CheckProductInCheckoutCartItemsActionGroup" stepKey="guestCheckoutCheckSimpleProduct2InCartItems" after="commentVerifySimpleProduct2IsInCheckoutCartItems"> |
| 372 | + <argument name="productVar" value="$$createSimpleProduct2$$"/> |
| 373 | + </actionGroup> |
| 374 | + |
187 | 375 | <comment userInput="Place order with check money order payment" stepKey="commentPlaceOrderWithCheckMoneyOrderPayment" after="guestCheckoutCheckSimpleProduct2InCartItems" />
|
188 | 376 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="guestSelectCheckMoneyOrderPayment" after="commentPlaceOrderWithCheckMoneyOrderPayment"/>
|
189 | 377 | <actionGroup ref="CheckBillingAddressInCheckoutActionGroup" stepKey="guestSeeBillingAddress" after="guestSelectCheckMoneyOrderPayment">
|
|
0 commit comments