StorefrontOrderActionGroupActionGroup.xml 1.5 KB

123456789101112131415161718192021222324252627
  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. <!--Fill order information fields and click continue-->
  11. <actionGroup name="StorefrontSearchGuestOrderActionGroup">
  12. <arguments>
  13. <argument name="orderId" type="string"/>
  14. <argument name="orderLastName" type="string"/>
  15. <argument name="orderEmail" type="string"/>
  16. </arguments>
  17. <amOnPage url="{{StorefrontOrdersAndReturnsPage.url}}" stepKey="navigateToOrderAndReturnPage"/>
  18. <waitForPageLoad stepKey="waitForPageLoad"/>
  19. <fillField selector="{{StorefrontOrderAndReturnInformationSection.orderId}}" userInput="{{orderId}}" stepKey="fillOrderId"/>
  20. <fillField selector="{{StorefrontOrderAndReturnInformationSection.bilingLastName}}" userInput="{{orderLastName}}" stepKey="fillBillingLastName"/>
  21. <fillField selector="{{StorefrontOrderAndReturnInformationSection.email}}" userInput="{{orderEmail}}" stepKey="fillEmail"/>
  22. <click selector="{{StorefrontOrderAndReturnInformationSection.continueButton}}" stepKey="clickContinue"/>
  23. <waitForPageLoad stepKey="waitForOrderInformationPageLoad"/>
  24. <seeInCurrentUrl url="{{StorefrontOrderInformationPage.url}}" stepKey="seeOrderInformationUrl"/>
  25. </actionGroup>
  26. </actionGroups>