|
84 | 84 | <argument name="total" value="€74.20"/> |
85 | 85 | </actionGroup> |
86 | 86 | <waitForText userInput="$105.00" selector="{{CheckoutPaymentSection.productChargedFor}}" stepKey="assertProductChargedFor"/> |
| 87 | + <!-- Place order--> |
87 | 88 | <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="placeOrder"/> |
88 | 89 | <waitForElement selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="waitForOrderId"/> |
89 | 90 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="orderId"/> |
| 91 | + <!-- Navigate to Sales order page--> |
90 | 92 | <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="navigateToSalesOrderPage"/> |
91 | | - <!-- clear filter if set --> |
| 93 | + <!-- Open created order --> |
92 | 94 | <actionGroup ref="AdminOpenOrderByEntityIdActionGroup" stepKey="filterOrdersGridById"> |
93 | 95 | <argument name="entityId" value="{$orderId}"/> |
94 | 96 | </actionGroup> |
| 97 | + <!-- Submit invoice--> |
95 | 98 | <actionGroup ref="AdminClickInvoiceButtonOrderViewActionGroup" stepKey="clickOnInvoiceBtn"/> |
96 | 99 | <actionGroup ref="AdminInvoiceClickSubmitActionGroup" stepKey="clickSubmitInvoice"/> |
97 | | - |
98 | 100 | <waitForElementVisible selector="{{AdminMessagesSection.successMessage}}" stepKey="waitForSuccessMessage"/> |
99 | 101 | <!-- Click 'Credit Memo' button and create new memo --> |
100 | 102 | <actionGroup ref="AdminStartToCreateCreditMemoFromOrderPageActionGroup" stepKey="createCreditMemo"/> |
| 103 | + <!-- Assert Credit Memo refund prices--> |
101 | 104 | <actionGroup ref="AssertAdminCreditMemoNewPageTotalsActionGroup" stepKey="assertCreditMemoRefundTotals"> |
102 | 105 | <argument name="refundShipping" value="5.00"/> |
103 | 106 | <argument name="adjustmentRefund" value="0.00"/> |
104 | 107 | <argument name="adjustmentFee" value="0.00"/> |
105 | 108 | <argument name="subtotalRow" value="$100.00"/> |
106 | 109 | <argument name="grandTotal" value="$105.00"/> |
107 | 110 | </actionGroup> |
| 111 | + <!-- Assert Grand total and subtotal value--> |
108 | 112 | <waitForElementVisible selector="{{AdminCreditMemoTotalSection.orderTotalPrices('Grand Total','€74.20')}}" stepKey="seeGrandTotalValueEURO"/> |
109 | 113 | <waitForElementVisible selector="{{AdminCreditMemoTotalSection.subtotalAndShipping('Subtotal','€70.67')}}" stepKey="seeSubTotalValueEURO"/> |
| 114 | + <!-- Refund Offline--> |
110 | 115 | <actionGroup ref="AdminClickRefundOfflineOnCreditMemoDetailPageActionGroup" stepKey="clickRefundOffline"/> |
111 | 116 | <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="navigateToSalesOrderPageAgain"/> |
112 | 117 | <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/> |
113 | 118 | <click selector="{{AdminProductGridFilterSection.columnsDropdown}}" stepKey="openColumnsdropDown"/> |
| 119 | + <!-- Enable to display Total Refunded column and validate currency --> |
114 | 120 | <checkOption selector="{{AdminProductGridFilterSection.viewColumnOption('Total Refunded')}}" stepKey="showRefundedColumn"/> |
115 | 121 | <click selector="{{AdminProductGridFilterSection.columnsDropdown}}" stepKey="closeColumnsdropDown"/> |
116 | 122 | <waitForElement selector="{{AdminGridHeaders.headerNameandValueOtherCurrency('Grand Total (Base)','105.00')}}" stepKey="waitForGrandTotalBaseValue"/> |
|
0 commit comments