Skip to content

Commit f04b799

Browse files
ACQE-5800: review comment changes added
1 parent 6731de8 commit f04b799

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

app/code/Magento/Paypal/Test/Mftf/ActionGroup/AdminPayPalExpressCheckoutBasicSettingsActionGroup.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
<argument name="paymentAction" type="string" defaultValue="Sale"/>
1818
</arguments>
1919
<waitForPageLoad stepKey="waitForPageLoad"/>
20+
<waitForElementClickable selector="{{PayPalExpressCheckoutConfigSection.configureBtn(countryCode)}}" stepKey="waitForConfigureButtonVisible"/>
2021
<click selector="{{PayPalExpressCheckoutConfigSection.configureBtn(countryCode)}}" stepKey="clickPayPalConfigureBtn"/>
2122
<conditionalClick selector="{{PayPalExpressCheckoutConfigSection.basicPayPalSetting(countryCode)}}" dependentSelector="{{PayPalExpressCheckoutConfigSection.basicPayPalSettingOpen(countryCode)}}" visible="false" stepKey="clickBasicSettingPayPalConfigureBtn"/>
2223
<waitForElementVisible selector="{{PayPalExpressCheckoutConfigSection.paymentAction(countryCode)}}" stepKey="waitForPaymentAction"/>
2324
<selectOption selector ="{{PayPalExpressCheckoutConfigSection.paymentAction(countryCode)}}" userInput="{{paymentAction}}" stepKey="changePaymentAction"/>
25+
<waitForElementVisible selector="{{AdminConfigSection.saveButton}}" stepKey="waitForSaveConfigButton"/>
2426
<click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig"/>
2527
<waitForPageLoad stepKey="waitForPageLoadAfterSaveConfiguration"/>
2628
</actionGroup>

app/code/Magento/Paypal/Test/Mftf/Test/AdminCreatePartialRefundOrderPaidThroughPayPalSmartButtonTest.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<testCaseId value="AC-5181"/>
1919
</annotations>
2020
<before>
21-
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2221
<!-- Create Category and Product -->
2322
<createData entity="_defaultCategory" stepKey="createCategory"/>
2423
<createData entity="_defaultProduct" stepKey="createProduct">
@@ -82,14 +81,15 @@
8281
<actionGroup ref="FilterInvoiceGridByOrderIdWithCleanFiltersActionGroup" stepKey="filterInvoiceGridByOrderId">
8382
<argument name="orderId" value="{$grabOrderNumber}"/>
8483
</actionGroup>
85-
<waitForElementVisible selector="{{AdminInvoicesGridSection.firstRow}}" stepKey="waitForInvoiceGrid"/>
84+
<waitForElementClickable selector="{{AdminInvoicesGridSection.firstRow}}" stepKey="waitForInvoiceGrid"/>
8685
<click selector="{{AdminInvoicesGridSection.firstRow}}" stepKey="openInvoice"/>
8786
<waitForPageLoad stepKey="waitForInvoiceDetailsPageToLoad"/>
8887
<!-- Creating Credit Memos from the invoice view page -->
89-
<waitForElementVisible selector="{{AdminInvoiceTotalSection.creditMemosButton}}" stepKey="waitForElementToClickCreditMemos"/>
88+
<waitForElementClickable selector="{{AdminInvoiceTotalSection.creditMemosButton}}" stepKey="waitForElementToClickCreditMemos"/>
9089
<click selector="{{AdminInvoiceTotalSection.creditMemosButton}}" stepKey="clickCreditMemosButton"/>
9190
<actionGroup ref="AdminFillQtyToInvoiceOnCreateInvoicePageActionGroup" stepKey="fillQtyInCreditMemo"/>
9291
<actionGroup ref="AdminClickUpdateQtysButtonOnCreateInvoicePageActionGroup" stepKey="clickOnUpdateButtonToCreateMemo"/>
92+
<waitForElementVisible selector="{{AdminInvoiceTotalSection.grandTotal}}" stepKey="waitForGrandTotalVisible"/>
9393
<grabTextFrom selector="{{AdminInvoiceTotalSection.grandTotal}}" stepKey="grabGrandTotal"/>
9494
<assertEquals message="ExpectedPrice" stepKey="assertBundleProductPrice">
9595
<actualResult type="variable">$grabGrandTotal</actualResult>
@@ -99,13 +99,15 @@
9999
<actionGroup ref="AdminClickRefundOfflineOnCreditMemoDetailPageActionGroup" stepKey="clickSubmitInvoice"/>
100100
<waitForText selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="You created the credit memo." stepKey="seeSuccessMessage"/>
101101
<waitForText selector="{{AdminCreditMemoOrderInformationSection.orderStatus}}" userInput="Processing" stepKey="waitForTextOrderStatus"/>
102+
<waitForElementVisible selector="{{AdminCreditMemosGridSection.memoId}}" stepKey="waitForMemoIdVisible"/>
102103
<grabTextFrom selector="{{AdminCreditMemosGridSection.memoId}}" stepKey="grabMemoId"/>
103104
<actionGroup ref="AdminAssertRefundInRefundsGridActionGroup" stepKey="assertRefund">
104105
<argument name="orderId" value="{$grabOrderNumber}"/>
105106
<argument name="memoId" value="{$grabMemoId}"/>
106107
<argument name="refundStatus" value="Refunded"/>
107108
<argument name="refundedTotal" value="$20.00"/>
108109
</actionGroup>
110+
<waitForElementVisible selector="{{AdminCreditMemosGridSection.grandTotal}}" stepKey="waitForMemoGrandTotal"/>
109111
<grabTextFrom selector="{{AdminCreditMemosGridSection.grandTotal}}" stepKey="creditMemoGrandTotal"/>
110112
<assertEquals message="ComparePrice" stepKey="assertCreditMemoGrandTotal">
111113
<actualResult type="variable">creditMemoGrandTotal</actualResult>
@@ -116,7 +118,6 @@
116118
<argument name="menuUiId" value="{{AdminMenuSales.dataUiId}}"/>
117119
<argument name="submenuUiId" value="{{AdminMenuSalesTransactions.dataUiId}}"/>
118120
</actionGroup>
119-
<waitForElementVisible selector="{{AdminSaleTransactionGridSection.searchOrderId}}" stepKey="waitForOrderIdFieldVisible"/>
120121
<actionGroup ref="AdminSaleTransactionGridPageActionGroup" stepKey="checkCaptureTxnType">
121122
<argument name="orderId" value="{$grabOrderNumber}"/>
122123
<argument name="txnType" value="Capture"/>
@@ -128,8 +129,6 @@
128129
<argument name="closed" value="Yes"/>
129130
</actionGroup>
130131
<after>
131-
<!-- Disable flat rate method -->
132-
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
133132
<!-- delete category and product -->
134133
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
135134
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminSaleTransactionGridPageActionGroup.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414
<argument name="txnType" type="string"/>
1515
<argument name="closed" type="string"/>
1616
</arguments>
17+
<waitForElementVisible selector="{{AdminSaleTransactionGridSection.searchOrderId}}" stepKey="waitForOrderIdFieldVisible"/>
1718
<fillField userInput="{{orderId}}" selector="{{AdminSaleTransactionGridSection.searchOrderId}}" stepKey="fillOrderIdField"/>
19+
<waitForElementVisible selector="{{AdminSaleTransactionGridSection.selectTxnType}}" stepKey="waitForTransactionTypeVisible"/>
1820
<selectOption userInput="{{txnType}}" selector="{{AdminSaleTransactionGridSection.selectTxnType}}" stepKey="selectTransactionType"/>
21+
<waitForElementClickable selector="{{AdminSaleTransactionGridSection.searchButton}}" stepKey="waitForSearchButtonVisible"/>
1922
<click selector="{{AdminSaleTransactionGridSection.searchButton}}" stepKey="clickOnSearchButtonForFilter"/>
2023
<waitForPageLoad stepKey="waitForPageLoad"/>
24+
<waitForElementVisible selector="{{AdminSaleTransactionGridSection.gridTransactionFirstRowForType}}" stepKey="waitForTxnType"/>
2125
<grabTextFrom selector="{{AdminSaleTransactionGridSection.gridTransactionFirstRowForType}}" stepKey="grabTextFromTxnTypeGrid"/>
2226
<grabTextFrom selector="{{AdminSaleTransactionGridSection.gridTransactionFirstRowForClosed}}" stepKey="grabTextFromClosedGrid"/>
2327
<assertEquals message="compareTxnType" stepKey="assertCompareTxnType">

0 commit comments

Comments
 (0)