Skip to content

Commit a8115bb

Browse files
committed
ACQE-6571:Check config for PayPal Credit in Unites States For Paymentspro
Correction on Testcase AdminConfigPaymentsProInUnitedstatesTest
1 parent 5201453 commit a8115bb

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

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

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,21 @@
6262
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentPage"/>
6363
<waitForPageLoad stepKey="waitForLoadingPaypalPaymentPage"/>
6464
<!-- Assert Paypal Pro and Paypal Credit Payment method -->
65-
<seeElement selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowEdition}}" stepKey="assertPayflowEdition"/>
66-
<seeElement selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowExpress}}" stepKey="assertPayflowExpress"/>
67-
<seeElement selector="{{AdminConfigPaymentsProPaypalCreditSection.creditCardPayflow}}" stepKey="assertCreditCardPayflowPro"/>
65+
<waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowEdition}}" stepKey="assertPayflowEdition"/>
66+
<waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowExpress}}" stepKey="assertPayflowExpress"/>
67+
<waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.creditCardPayflow}}" stepKey="assertCreditCardPayflowPro"/>
68+
<magentoCLI command="config:set payment/payflow_express_bml/active 0" stepKey="disablePayPalCredit"/>
69+
<magentoCLI command="config:set payment/payflowpro_cc_vault/active 1" stepKey="enablePayPalVault"/>
70+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
71+
<argument name="indices" value=""/>
72+
</actionGroup>
73+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
74+
<argument name="tags" value="config full_page"/>
75+
</actionGroup>
76+
<!-- Refresh page -->
77+
<reloadPage stepKey="refreshPage"/>
78+
<waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowEdition}}" stepKey="seePayflowEditionPayment"/>
79+
<waitForElementNotVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowExpress}}" stepKey="dontSeePaypalCreditPayment"/>
80+
<waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.creditCardPayflow}}" stepKey="seeCreditcardPayment"/>
6881
</test>
6982
</tests>

0 commit comments

Comments
 (0)