Skip to content

Commit ef5eef3

Browse files
shanthishanthi
authored andcommitted
ACQE-4324: Modified action groups
1 parent 1c5616f commit ef5eef3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</arguments>
1919
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
2020
<waitForPageLoad stepKey="waitForConfigPageLoad"/>
21+
<waitForElementClickable selector="{{OtherPayPalPaymentsConfigSection.expandTab(countryCode)}}" stepKey="waitForConfigureButtonToBeClicked"/>
2122
<click selector ="{{OtherPayPalPaymentsConfigSection.expandTab(countryCode)}}" stepKey="expandOtherPaypalConfigButton"/>
2223
<scrollTo selector="{{PayPalPaymentsProConfigSection.paymentsAdvanced(countryCode)}}" stepKey="scrollToConfigure"/>
2324
<waitForElementClickable selector="{{PayPalPaymentsProConfigSection.configureBtn(countryCode)}}" stepKey="waitForPayPalPaymentsProConfigureBtn"/>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
<annotations>
1212
<description>Click the Transactions button on the Order Details page</description>
1313
</annotations>
14-
<click selector="{{AdminTransactionsGridSection.transactionsSectionBtn}}" stepKey="clickTransactionsButton"/>
14+
<waitForElementClickable selector="{{AdminTransactionsGridSection.transactionsSectionBtn}}" stepKey="waitForTransactionsTabToBeClicked"/>
15+
<click selector="{{AdminTransactionsGridSection.transactionsSectionBtn}}" stepKey="clickTransactionsTab"/>
1516
<waitForElementVisible selector="{{AdminTransactionsGridSection.orderTxnTable}}" stepKey="orderTransactionsTableIsVisible"/>
1617
<selectOption selector="{{AdminTransactionsGridSection.orderTxnTableTypeFilter}}" userInput="void" stepKey="selectVoidTypeTxn" />
18+
<waitForElementClickable selector="{{AdminTransactionsGridSection.orderTxnTableSearchBtn}}" stepKey="waitToClickSearch"/>
1719
<click selector="{{AdminTransactionsGridSection.orderTxnTableSearchBtn}}" stepKey="clickSearch"/>
1820
<waitForPageLoad stepKey="waitForFilterToLoad"/>
21+
<waitForElementClickable selector="{{AdminTransactionsGridSection.orderTxnTableFirstRow}}" stepKey="clickOnVoidTransaction"/>
1922
<click selector="{{AdminTransactionsGridSection.orderTxnTableFirstRow}}" stepKey="clickVoidTxn"/>
2023
<waitForPageLoad stepKey="waitForTxnToLoad"/>
2124
<grabTextFrom selector="{{AdminTransactionsGridSection.transactionId}}" stepKey="getVoidTransaction"/>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
<waitForElementClickable selector="{{AdminOrderDetailsMainActionsSection.void}}" stepKey="waitForVoidButtonVisible"/>
1616
<click selector="{{AdminOrderDetailsMainActionsSection.void}}" stepKey="clickOnVoid"/>
1717
<waitForText selector="{{AdminConfirmationModalSection.message}}" userInput="Are you sure you want to void the payment?" stepKey="seeConfirmationMessage"/>
18-
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmOrderCancel"/>
19-
<waitForText selector="{{AdminMessagesSection.success}}" userInput="The payment has been voided." stepKey="seeCancelSuccessMessage"/>
18+
<waitForElementClickable selector="{{AdminConfirmationModalSection.ok}}" stepKey="waitForOkButtonToBeClicked"/>
19+
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmVoid"/>
20+
<waitForText selector="{{AdminMessagesSection.success}}" userInput="The payment has been voided." stepKey="seeVoidedSuccessMessage"/>
2021
</actionGroup>
2122
</actionGroups>

0 commit comments

Comments
 (0)