Skip to content

Commit 4d28e1f

Browse files
committed
Check configuration for Payments Pro in Unites States For Paymentspro
Correction on Testcase
1 parent 48feefc commit 4d28e1f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="AdminClearForPaymentsProThroughCLICommandActionGroup">
11+
<actionGroup name="AdminClearForPaypalPaymentsProActionGroup">
1212
<annotations>
1313
<description>Check No Other Paypal Payment Solution Exist and If Exist then Clear the Credentials</description>
1414
</annotations>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="AdminConfigurationForPaymentsProThroughCLIActionGroup">
11+
<actionGroup name="AdminConfigPaypalPaymentsProActionGroup">
1212
<annotations>
13-
<description>Configuring payments pro solution through CLI Command</description>
13+
<description>Configure paypal payment pro solution</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="credentials" defaultValue="_CREDS"/>

app/code/Magento/Paypal/Test/Mftf/Section/AdminConfigPaymentsProPaypalCreditSection.xml renamed to app/code/Magento/Paypal/Test/Mftf/Section/AdminConfigPaypalPaymentsProSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11-
<section name="AdminConfigPaymentsProPaypalCreditSection">
11+
<section name="AdminConfigPaypalPaymentsProSection">
1212
<element name="otherPaypalLink" type="input" selector="//*[contains(@id, 'payment_{{countryCode}}_paypal_group_all_in_one-head')]" parameterized="true" />
1313
<element name="paypalPaymentGatewayLink" type="button" selector="//*[contains(@id, 'payment_{{countryCode}}_paypal_payment_gateways-head')]" parameterized="true" />
1414
<element name="enablePaypalCredit" type="select" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wpp_usuk_paypal_payflow_required_enable_express_checkout_bml_payflow" parameterized="true"/>

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<features value="PayPal"/>
1313
<stories value="Payment methods"/>
1414
<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"/>
1616
<severity value="MAJOR"/>
1717
<testCaseId value="AC-4790"/>
1818
<group value="3rd_party_integration"/>
@@ -25,21 +25,21 @@
2525
<requiredEntity createDataKey="simpleCategory"/>
2626
</createData>
2727
<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"/>
2830
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2931
</before>
3032
<after>
3133
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3234
<magentoCLI command="config:set paypal/general/merchant_country US" stepKey="setMerchantCountryAsUS"/>
33-
<actionGroup ref="AdminClearForPaymentsProThroughCLICommandActionGroup" stepKey="clearPaymentsProData"/>
35+
<actionGroup ref="AdminClearForPaypalPaymentsProActionGroup" stepKey="clearPaymentsProData"/>
3436
<magentoCLI command="config:set payment/paypal_payment_pro/active 0" stepKey="disablePayPalPaymentsPro"/>
3537
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
3638
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
3739
<deleteData createDataKey="simpleCategory" stepKey="deleteCategory"/>
3840
</after>
39-
<!--Admin navigate to payment configuration page and assert no other paypal payment is enabled-->
40-
<actionGroup ref="AdminClearForPaymentsProThroughCLICommandActionGroup" stepKey="clearPaymentsProExistingData"/>
4141
<!--Enable Payment Pro through CLI Command-->
42-
<actionGroup ref="AdminConfigurationForPaymentsProThroughCLIActionGroup" stepKey="configurePaymentsPro"/>
42+
<actionGroup ref="AdminConfigPaypalPaymentsProActionGroup" stepKey="configurePaymentsPro"/>
4343
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex">
4444
<argument name="indices" value=""/>
4545
</actionGroup>
@@ -71,9 +71,9 @@
7171
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentPage"/>
7272
<waitForPageLoad stepKey="waitForLoadingPaypalPaymentPage"/>
7373
<!-- 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"/>
7777
<magentoCLI command="config:set payment/payflow_express_bml/active 0" stepKey="disablePayPalCredit"/>
7878
<magentoCLI command="config:set payment/payflowpro_cc_vault/active 1" stepKey="enablePayPalVault"/>
7979
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
@@ -84,8 +84,8 @@
8484
</actionGroup>
8585
<!-- Refresh page -->
8686
<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"/>
9090
</test>
9191
</tests>

0 commit comments

Comments
 (0)