FindOrderAndCancelActionGroup.xml 1.5 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * This file is part of the Klarna KP module
  5. *
  6. * (c) Klarna Bank AB (publ)
  7. *
  8. * For the full copyright and license information, please view the NOTICE
  9. * and LICENSE files that were distributed with this source code.
  10. */
  11. -->
  12. <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
  14. <actionGroup name="FindOrderAndCancel">
  15. <amOnPage url="{{OrdersPage.url}}" stepKey="onOrdersPage"/>
  16. <wait stepKey="waitOrderPageLoad" time="5"/>
  17. <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask3"/>
  18. <fillField selector="{{OrdersGridSection.search}}" userInput="{$kpGrabOrderNumber}" stepKey="searchOrderNum"/>
  19. <click selector="{{OrdersGridSection.submitSearch}}" stepKey="submitSearch"/>
  20. <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask4"/>
  21. <click selector="{{OrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
  22. <click selector="{{OrderDetailsMainActionsSection.cancel}}" stepKey="clickCancel"/>
  23. <wait stepKey="waitOrderPageLoad1" time="5"/>
  24. <click selector="{{KpOrderDetailsOrderViewSection.confirmBoxOk}}" stepKey="confirmCancel"/>
  25. <wait stepKey="waitOrderPageLoad2" time="5"/>
  26. <see selector="{{OrderDetailsMessagesSection.successMessage}}" userInput="You canceled the order." stepKey="seeSuccessMessage"/>
  27. </actionGroup>
  28. </actionGroups>