You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
2.2 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  10. <actionGroup name="CreateOrderToPrintPageActionGroup">
  11. <annotations>
  12. <description>Goes to the provided Storefront Category page. Adds the Product to the Cart. Places the Order. Clicks on Print Order.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="Category"/>
  16. </arguments>
  17. <amOnPage url="{{StorefrontCategoryPage.url(Category.name)}}" stepKey="onCategoryPage"/>
  18. <waitForPageLoad stepKey="waitForPageLoad1"/>
  19. <moveMouseOver selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" stepKey="hoverProduct"/>
  20. <click selector="{{StorefrontCategoryMainSection.AddToCartBtn}}" stepKey="addToCart"/>
  21. <waitForElementVisible selector="{{StorefrontCategoryMainSection.SuccessMsg}}" time="30" stepKey="waitForProductAdded"/>
  22. <click selector="{{StorefrontMinicartSection.showCart}}" stepKey="clickCart"/>
  23. <click selector="{{StorefrontMinicartSection.goToCheckout}}" stepKey="goToCheckout"/>
  24. <waitForPageLoad stepKey="waitForPageLoad2"/>
  25. <waitForPageLoad stepKey="waitForLoadingMask"/>
  26. <click selector="{{CheckoutShippingMethodsSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/>
  27. <waitForPageLoad stepKey="waitForLoadingMask2"/>
  28. <waitForElement selector="{{CheckoutShippingMethodsSection.next}}" time="30" stepKey="waitForNextButton"/>
  29. <click selector="{{CheckoutShippingMethodsSection.next}}" stepKey="clickNext"/>
  30. <waitForElement selector="{{CheckoutPaymentSection.placeOrder}}" time="30" stepKey="waitForPlaceOrderButton"/>
  31. <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
  32. <click selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="clickOrderLink"/>
  33. <click selector="{{StorefrontCustomerOrderViewSection.printOrderLink}}" stepKey="clickPrintOrderLink"/>
  34. </actionGroup>
  35. </actionGroups>