Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

42 righe
2.8 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="AdminOpenAndFillCreditMemoRefundActionGroup">
  11. <annotations>
  12. <description>Clicks on the 'Credit Memos' section on the Admin Orders edit page. Fills in the provided Refund details (Qty to Refund, Shipping Refund, Adjustment Refund, Adjustment Fee and Row number).</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="itemQtyToRefund" type="string" defaultValue="1"/>
  16. <argument name="shippingRefund" type="string" defaultValue="0"/>
  17. <argument name="adjustmentRefund" type="string" defaultValue="0"/>
  18. <argument name="adjustmentFee" type="string" defaultValue="0"/>
  19. <argument name="rowNumber" type="string" defaultValue="1"/>
  20. </arguments>
  21. <!-- Click 'Credit Memo' button -->
  22. <click selector="{{AdminOrderDetailsMainActionsSection.creditMemo}}" stepKey="clickCreateCreditMemo"/>
  23. <seeInCurrentUrl url="{{AdminCreditMemoNewPage.url}}" stepKey="seeNewCreditMemoPage"/>
  24. <see selector="{{AdminHeaderSection.pageTitle}}" userInput="New Memo" stepKey="seeNewMemoInPageTitle"/>
  25. <!-- Fill data from dataset: refund -->
  26. <scrollTo selector="{{AdminCreditMemoItemsSection.header}}" stepKey="scrollToItemsToRefund"/>
  27. <fillField selector="{{AdminCreditMemoItemsSection.itemQtyToRefund(rowNumber)}}" userInput="{{itemQtyToRefund}}" stepKey="fillQtyToRefund"/>
  28. <waitForLoadingMaskToDisappear stepKey="waitForActivateButton"/>
  29. <conditionalClick selector="{{AdminCreditMemoItemsSection.updateQty}}" dependentSelector="{{AdminCreditMemoItemsSection.disabledUpdateQty}}" visible="false" stepKey="clickUpdateButton"/>
  30. <waitForLoadingMaskToDisappear stepKey="waitForUpdate"/>
  31. <fillField userInput="{{shippingRefund}}" selector="{{AdminCreditMemoTotalSection.refundShipping}}" stepKey="fillShipping"/>
  32. <fillField userInput="{{adjustmentRefund}}" selector="{{AdminCreditMemoTotalSection.adjustmentRefund}}" stepKey="fillAdjustmentRefund"/>
  33. <fillField userInput="{{adjustmentFee}}" selector="{{AdminCreditMemoTotalSection.adjustmentFee}}" stepKey="fillAdjustmentFee"/>
  34. <waitForElementVisible selector="{{AdminCreditMemoTotalSection.updateTotals}}" stepKey="waitForUpdateTotalsButton"/>
  35. <click selector="{{AdminCreditMemoTotalSection.updateTotals}}" stepKey="clickUpdateTotals"/>
  36. <checkOption selector="{{AdminCreditMemoTotalSection.emailCopy}}" stepKey="checkSendEmailCopy"/>
  37. </actionGroup>
  38. </actionGroups>