NavigateToNewOrderPageExistingCustomerActionGroup.xml 1.5 KB

12345678910111213141516171819202122232425262728
  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. <!--Navigate to create order page (New Order -> Select Customer)-->
  11. <actionGroup name="navigateToNewOrderPageExistingCustomer">
  12. <arguments>
  13. <argument name="customer"/>
  14. </arguments>
  15. <amOnPage url="{{AdminOrdersPage.url}}" stepKey="navigateToOrderIndexPage"/>
  16. <waitForPageLoad stepKey="waitForIndexPageLoad"/>
  17. <see selector="{{AdminHeaderSection.pageTitle}}" userInput="Orders" stepKey="seeIndexPageTitle"/>
  18. <click selector="{{AdminOrdersGridSection.createNewOrder}}" stepKey="clickCreateNewOrder"/>
  19. <waitForPageLoad stepKey="waitForCustomerGridLoad"/>
  20. <fillField userInput="{{customer.email}}" selector="{{AdminOrderCustomersGridSection.emailInput}}" stepKey="filterEmail"/>
  21. <click selector="{{AdminOrderCustomersGridSection.apply}}" stepKey="applyFilter"/>
  22. <waitForPageLoad stepKey="waitForFilteredCustomerGridLoad"/>
  23. <click selector="{{AdminOrderCustomersGridSection.firstRow}}" stepKey="clickOnCustomer"/>
  24. <waitForPageLoad stepKey="waitForCreateOrderPageLoad" />
  25. <see selector="{{AdminHeaderSection.pageTitle}}" userInput="Create New Order" stepKey="seeNewOrderPageTitle"/>
  26. </actionGroup>
  27. </actionGroups>