|
18 | 18 | <testCaseId value="AC-5181"/>
|
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 |
| - <magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/> |
22 | 21 | <!-- Create Category and Product -->
|
23 | 22 | <createData entity="_defaultCategory" stepKey="createCategory"/>
|
24 | 23 | <createData entity="_defaultProduct" stepKey="createProduct">
|
|
82 | 81 | <actionGroup ref="FilterInvoiceGridByOrderIdWithCleanFiltersActionGroup" stepKey="filterInvoiceGridByOrderId">
|
83 | 82 | <argument name="orderId" value="{$grabOrderNumber}"/>
|
84 | 83 | </actionGroup>
|
85 |
| - <waitForElementVisible selector="{{AdminInvoicesGridSection.firstRow}}" stepKey="waitForInvoiceGrid"/> |
| 84 | + <waitForElementClickable selector="{{AdminInvoicesGridSection.firstRow}}" stepKey="waitForInvoiceGrid"/> |
86 | 85 | <click selector="{{AdminInvoicesGridSection.firstRow}}" stepKey="openInvoice"/>
|
87 | 86 | <waitForPageLoad stepKey="waitForInvoiceDetailsPageToLoad"/>
|
88 | 87 | <!-- Creating Credit Memos from the invoice view page -->
|
89 |
| - <waitForElementVisible selector="{{AdminInvoiceTotalSection.creditMemosButton}}" stepKey="waitForElementToClickCreditMemos"/> |
| 88 | + <waitForElementClickable selector="{{AdminInvoiceTotalSection.creditMemosButton}}" stepKey="waitForElementToClickCreditMemos"/> |
90 | 89 | <click selector="{{AdminInvoiceTotalSection.creditMemosButton}}" stepKey="clickCreditMemosButton"/>
|
91 | 90 | <actionGroup ref="AdminFillQtyToInvoiceOnCreateInvoicePageActionGroup" stepKey="fillQtyInCreditMemo"/>
|
92 | 91 | <actionGroup ref="AdminClickUpdateQtysButtonOnCreateInvoicePageActionGroup" stepKey="clickOnUpdateButtonToCreateMemo"/>
|
| 92 | + <waitForElementVisible selector="{{AdminInvoiceTotalSection.grandTotal}}" stepKey="waitForGrandTotalVisible"/> |
93 | 93 | <grabTextFrom selector="{{AdminInvoiceTotalSection.grandTotal}}" stepKey="grabGrandTotal"/>
|
94 | 94 | <assertEquals message="ExpectedPrice" stepKey="assertBundleProductPrice">
|
95 | 95 | <actualResult type="variable">$grabGrandTotal</actualResult>
|
|
99 | 99 | <actionGroup ref="AdminClickRefundOfflineOnCreditMemoDetailPageActionGroup" stepKey="clickSubmitInvoice"/>
|
100 | 100 | <waitForText selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="You created the credit memo." stepKey="seeSuccessMessage"/>
|
101 | 101 | <waitForText selector="{{AdminCreditMemoOrderInformationSection.orderStatus}}" userInput="Processing" stepKey="waitForTextOrderStatus"/>
|
| 102 | + <waitForElementVisible selector="{{AdminCreditMemosGridSection.memoId}}" stepKey="waitForMemoIdVisible"/> |
102 | 103 | <grabTextFrom selector="{{AdminCreditMemosGridSection.memoId}}" stepKey="grabMemoId"/>
|
103 | 104 | <actionGroup ref="AdminAssertRefundInRefundsGridActionGroup" stepKey="assertRefund">
|
104 | 105 | <argument name="orderId" value="{$grabOrderNumber}"/>
|
105 | 106 | <argument name="memoId" value="{$grabMemoId}"/>
|
106 | 107 | <argument name="refundStatus" value="Refunded"/>
|
107 | 108 | <argument name="refundedTotal" value="$20.00"/>
|
108 | 109 | </actionGroup>
|
| 110 | + <waitForElementVisible selector="{{AdminCreditMemosGridSection.grandTotal}}" stepKey="waitForMemoGrandTotal"/> |
109 | 111 | <grabTextFrom selector="{{AdminCreditMemosGridSection.grandTotal}}" stepKey="creditMemoGrandTotal"/>
|
110 | 112 | <assertEquals message="ComparePrice" stepKey="assertCreditMemoGrandTotal">
|
111 | 113 | <actualResult type="variable">creditMemoGrandTotal</actualResult>
|
|
116 | 118 | <argument name="menuUiId" value="{{AdminMenuSales.dataUiId}}"/>
|
117 | 119 | <argument name="submenuUiId" value="{{AdminMenuSalesTransactions.dataUiId}}"/>
|
118 | 120 | </actionGroup>
|
119 |
| - <waitForElementVisible selector="{{AdminSaleTransactionGridSection.searchOrderId}}" stepKey="waitForOrderIdFieldVisible"/> |
120 | 121 | <actionGroup ref="AdminSaleTransactionGridPageActionGroup" stepKey="checkCaptureTxnType">
|
121 | 122 | <argument name="orderId" value="{$grabOrderNumber}"/>
|
122 | 123 | <argument name="txnType" value="Capture"/>
|
|
128 | 129 | <argument name="closed" value="Yes"/>
|
129 | 130 | </actionGroup>
|
130 | 131 | <after>
|
131 |
| - <!-- Disable flat rate method --> |
132 |
| - <magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/> |
133 | 132 | <!-- delete category and product -->
|
134 | 133 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
135 | 134 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
|
0 commit comments