|
12 | 12 | <features value="PayPal"/>
|
13 | 13 | <stories value="Payment methods"/>
|
14 | 14 | <title value="Check configuration for Payments Pro in Unites States For Paymentspro"/>
|
15 |
| - <description value="Check payments pro option's enablement and disablement based on the configuration setting For Payments Pro in backend"/> |
| 15 | + <description value="Check payments pro option's enablement based on the configuration setting For Payments Pro in backend"/> |
16 | 16 | <severity value="MAJOR"/>
|
17 | 17 | <testCaseId value="AC-4790"/>
|
18 | 18 | <group value="3rd_party_integration"/>
|
|
25 | 25 | <requiredEntity createDataKey="simpleCategory"/>
|
26 | 26 | </createData>
|
27 | 27 | <magentoCLI command="config:set paypal/general/merchant_country US" stepKey="setMerchantCountry"/>
|
| 28 | + <!--Admin navigate to payment configuration page and assert no other paypal payment is enabled--> |
| 29 | + <actionGroup ref="AdminClearForPaypalPaymentsProActionGroup" stepKey="clearPaymentsProExistingData"/> |
28 | 30 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
29 | 31 | </before>
|
30 | 32 | <after>
|
31 | 33 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
32 | 34 | <magentoCLI command="config:set paypal/general/merchant_country US" stepKey="setMerchantCountryAsUS"/>
|
33 |
| - <actionGroup ref="AdminClearForPaymentsProThroughCLICommandActionGroup" stepKey="clearPaymentsProData"/> |
| 35 | + <actionGroup ref="AdminClearForPaypalPaymentsProActionGroup" stepKey="clearPaymentsProData"/> |
34 | 36 | <magentoCLI command="config:set payment/paypal_payment_pro/active 0" stepKey="disablePayPalPaymentsPro"/>
|
35 | 37 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
36 | 38 | <deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
|
37 | 39 | <deleteData createDataKey="simpleCategory" stepKey="deleteCategory"/>
|
38 | 40 | </after>
|
39 |
| - <!--Admin navigate to payment configuration page and assert no other paypal payment is enabled--> |
40 |
| - <actionGroup ref="AdminClearForPaymentsProThroughCLICommandActionGroup" stepKey="clearPaymentsProExistingData"/> |
41 | 41 | <!--Enable Payment Pro through CLI Command-->
|
42 |
| - <actionGroup ref="AdminConfigurationForPaymentsProThroughCLIActionGroup" stepKey="configurePaymentsPro"/> |
| 42 | + <actionGroup ref="AdminConfigPaypalPaymentsProActionGroup" stepKey="configurePaymentsPro"/> |
43 | 43 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex">
|
44 | 44 | <argument name="indices" value=""/>
|
45 | 45 | </actionGroup>
|
|
71 | 71 | <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentPage"/>
|
72 | 72 | <waitForPageLoad stepKey="waitForLoadingPaypalPaymentPage"/>
|
73 | 73 | <!-- Assert Paypal Payment Pro In Storefront Payment method Page-->
|
74 |
| - <waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowEdition}}" stepKey="assertPayflowEdition"/> |
75 |
| - <waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowExpress}}" stepKey="assertPayflowExpress"/> |
76 |
| - <waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.creditCardPayflow}}" stepKey="assertCreditCardPayflowPro"/> |
| 74 | + <waitForElementVisible selector="{{AdminConfigPaypalPaymentsProSection.payFlowEdition}}" stepKey="assertPayflowEdition"/> |
| 75 | + <waitForElementVisible selector="{{AdminConfigPaypalPaymentsProSection.payFlowExpress}}" stepKey="assertPayflowExpress"/> |
| 76 | + <waitForElementVisible selector="{{AdminConfigPaypalPaymentsProSection.creditCardPayflow}}" stepKey="assertCreditCardPayflowPro"/> |
77 | 77 | <magentoCLI command="config:set payment/payflow_express_bml/active 0" stepKey="disablePayPalCredit"/>
|
78 | 78 | <magentoCLI command="config:set payment/payflowpro_cc_vault/active 1" stepKey="enablePayPalVault"/>
|
79 | 79 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
|
|
84 | 84 | </actionGroup>
|
85 | 85 | <!-- Refresh page -->
|
86 | 86 | <reloadPage stepKey="refreshPage"/>
|
87 |
| - <waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowEdition}}" stepKey="seePayflowEditionPayment"/> |
88 |
| - <waitForElementNotVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.payFlowExpress}}" stepKey="dontSeePaypalCreditPayment"/> |
89 |
| - <waitForElementVisible selector="{{AdminConfigPaymentsProPaypalCreditSection.creditCardPayflow}}" stepKey="seeCreditcardPayment"/> |
| 87 | + <waitForElementVisible selector="{{AdminConfigPaypalPaymentsProSection.payFlowEdition}}" stepKey="seePayflowEditionPayment"/> |
| 88 | + <waitForElementNotVisible selector="{{AdminConfigPaypalPaymentsProSection.payFlowExpress}}" stepKey="dontSeePaypalCreditPayment"/> |
| 89 | + <waitForElementVisible selector="{{AdminConfigPaypalPaymentsProSection.creditCardPayflow}}" stepKey="seeCreditcardPayment"/> |
90 | 90 | </test>
|
91 | 91 | </tests>
|
0 commit comments