Skip to content

Commit 0bd33d3

Browse files
committed
ACQE-5766: Cancel a Sales Order placed with PayPal Payflow Link
- Added waitForElementClickable In Test File and Actiongroup
1 parent 7d4ce3b commit 0bd33d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<description>Fills in the provided Credit Card details. And Clicks on PayNow Button</description>
1414
</annotations>
1515
<arguments>
16-
<argument name="creditCardDetails" defaultValue="Visa3DSecureCard"/>
16+
<argument name="creditCardDetails" defaultValue="VisaDefaultCard"/>
1717
</arguments>
1818
<!--Fill the required details for Credit card-->
1919
<waitForElementVisible selector="{{CheckoutPaymentSection.creditCardField}}" stepKey="waitForCreditCardField"/>
@@ -23,6 +23,7 @@
2323
<fillField selector ="{{CheckoutPaymentSection.expirationMonth}}" userInput="{{creditCardDetails.month}}" stepKey="inputExpirationMonth"/>
2424
<fillField selector ="{{CheckoutPaymentSection.expirationYear}}" userInput="{{creditCardDetails.year}}" stepKey="inputExpirationYear"/>
2525
<fillField selector ="{{CheckoutPaymentSection.cvv}}" userInput="{{creditCardDetails.cvv}}" stepKey="inputCvv"/>
26+
<waitForElementClickable selector="{{CheckoutPaymentSection.payNowBtn}}" stepKey="waitToClickPayNowBtn"/>
2627
<click selector="{{CheckoutPaymentSection.payNowBtn}}" stepKey="clickPayNowBtn"/>
2728
</actionGroup>
2829
</actionGroups>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<waitForElementClickable selector="{{CheckoutPaymentSection.PayPalPayflowLinkRadio}}" stepKey="waitForPayPalRadioButton"/>
4444
<click selector="{{CheckoutPaymentSection.PayPalPayflowLinkRadio}}" stepKey="selectPaypalPayment"/>
4545
<checkOption selector="{{CheckoutPaymentSection.selectCheckboxforBilling}}" stepKey="selectCheckboxForBilling"/>
46+
<waitForElementClickable selector="{{CheckoutPaymentSection.cntinuebtn}}" stepKey="waitToClickContinueButton"/>
4647
<click selector="{{CheckoutPaymentSection.cntinuebtn}}" stepKey="submitContinueButton"/>
4748
<actionGroup ref="StorefrontSwitchToPayPalPayflowActionGroup" stepKey="switchToPaypalPayflowIframe"/>
4849
<actionGroup ref="StorefrontFillCreditCardDetailsActionGroup" stepKey="inputCreditCardNumberFillCreditCardDetails"/>

0 commit comments

Comments
 (0)