Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

41 строка
2.7 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="AdminAssertRefundInRefundsGridActionGroup">
  11. <annotations>
  12. <description>Goes to the Admin Credit Memo grid page. Filters the grid for the provided Order ID, Memo ID, Refund Status and Refunded Total. Validates that the provided details are present and correct.</description>
  13. </annotations>
  14. <arguments>
  15. <argument name="orderId" type="string"/>
  16. <argument name="memoId" type="string"/>
  17. <argument name="refundStatus" type="string"/>
  18. <argument name="refundedTotal" type="string"/>
  19. </arguments>
  20. <!--Assert refund in refunds grid-->
  21. <amOnPage url="{{AdminCreditMemosGridPage.url}}" stepKey="onCreditMemosGrid"/>
  22. <waitForPageLoad stepKey="waitForLoadingPage"/>
  23. <conditionalClick selector="{{AdminCreditMemosGridSection.clearFilters}}" dependentSelector="{{AdminCreditMemosGridSection.clearFilters}}" visible="true" stepKey="clearFilter"/>
  24. <waitForLoadingMaskToDisappear stepKey="waitForFilterLoad"/>
  25. <click selector="{{AdminCreditMemosGridSection.buttonFilters}}" stepKey="openFilterSearch"/>
  26. <waitForLoadingMaskToDisappear stepKey="waitForFilterFields"/>
  27. <fillField userInput="{{memoId}}" selector="{{AdminCreditMemosGridSection.fieldCreditMemo}}" stepKey="fillSearchByCreditMemoId"/>
  28. <fillField userInput="{{orderId}}" selector="{{AdminCreditMemosGridSection.fieldOrder}}" stepKey="fillSearchByOrderId"/>
  29. <fillField userInput="{{refundedTotal}}" selector="{{AdminCreditMemosGridSection.fieldRefundFrom}}" stepKey="fillRefundedFrom"/>
  30. <fillField userInput="{{refundedTotal}}" selector="{{AdminCreditMemosGridSection.fieldRefundTo}}" stepKey="fillRefundedTo"/>
  31. <click selector="{{AdminCreditMemosGridSection.applyFilter}}" stepKey="clickSearchButton"/>
  32. <waitForLoadingMaskToDisappear stepKey="waitForSearchResult"/>
  33. <see userInput="{{memoId}}" selector="{{AdminCreditMemosGridSection.rowCreditMemos}}" stepKey="seeMemoID"/>
  34. <see userInput="{{orderId}}" selector="{{AdminCreditMemosGridSection.rowCreditMemos}}" stepKey="seeOrderID"/>
  35. <see userInput="{{refundStatus}}" selector="{{AdminCreditMemosGridSection.rowCreditMemos}}" stepKey="seeStatus"/>
  36. <see userInput="{{refundedTotal}}" selector="{{AdminCreditMemosGridSection.rowCreditMemos}}" stepKey="refundedPrice"/>
  37. </actionGroup>
  38. </actionGroups>