Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

39 wiersze
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="CreateOrderActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Create New Order page. Selects the provided Customer. Adds the provided Product to the Order. Clicks on Submit Order. Validates that the Success Message is present and correct.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="product"/>
  16. <argument name="customer"/>
  17. </arguments>
  18. <amOnPage stepKey="navigateToNewOrderPage" url="{{AdminOrderCreatePage.url}}"/>
  19. <waitForPageLoad stepKey="waitForNewOrderPageOpened"/>
  20. <click stepKey="chooseCustomer" selector="{{AdminOrdersGridSection.customerInOrdersSection(customer.firstname)}}"/>
  21. <waitForPageLoad stepKey="waitForStoresPageOpened"/>
  22. <click selector="{{OrdersGridSection.addProducts}}" stepKey="clickOnAddProducts"/>
  23. <waitForPageLoad stepKey="waitForProductsListForOrder"/>
  24. <click selector="{{AdminOrdersGridSection.productForOrder(product.sku)}}" stepKey="chooseTheProduct"/>
  25. <waitForPageLoad stepKey="waitForClickProduct"/>
  26. <click selector="{{AdminOrderFormItemsSection.addSelected}}" stepKey="addSelectedProductToOrder"/>
  27. <waitForPageLoad stepKey="waitForProductAddedInOrder"/>
  28. <click selector="{{AdminInvoicePaymentShippingSection.getShippingMethodAndRates}}" stepKey="openShippingMethod"/>
  29. <waitForPageLoad stepKey="waitForShippingMethods"/>
  30. <click selector="{{AdminInvoicePaymentShippingSection.shippingMethod}}" stepKey="chooseShippingMethod"/>
  31. <waitForPageLoad stepKey="waitForShippingMethodsThickened"/>
  32. <click selector="{{OrdersGridSection.submitOrder}}" stepKey="submitOrder"/>
  33. <waitForPageLoad stepKey="waitForSubmitOrder"/>
  34. <see stepKey="seeSuccessMessageForOrder" userInput="You created the order."/>
  35. </actionGroup>
  36. </actionGroups>