Skip to content
Snippets Groups Projects
Commit 973bfe38 authored by Vasyl Kozyrenko's avatar Vasyl Kozyrenko
Browse files

MTA-3898: Add variation for Place order via Payflow Pro with success CVV verification

parents 7c01df01 e3d9f6f4
Branches
No related merge requests found
......@@ -50,5 +50,12 @@
<field name="cc_exp_year" xsi:type="string" />
<field name="cc_cid" xsi:type="string" />
</dataset>
<dataset name="visa_cvv_mismatch">
<field name="cc_number" xsi:type="string">4111111111111111</field>
<field name="cc_exp_month" xsi:type="string">01 - January</field>
<field name="cc_exp_year" xsi:type="string">2020</field>
<field name="cc_cid" xsi:type="string">306</field>
</dataset>
</repository>
</config>
......@@ -236,6 +236,15 @@
</field>
</dataset>
<dataset name="payflowpro_avs_security_code_does_not_match">
<field name="payment/payflowpro/avs_security_code" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
<item name="scope_id" xsi:type="number">1</item>
<item name="label" xsi:type="string">Yes</item>
<item name="value" xsi:type="number">1</item>
</field>
</dataset>
<dataset name="hosted_pro">
<field name="payment/paypal_group_all_in_one/payments_pro_hosted_solution_with_express_checkout/pphs_required_settings/pphs_required_settings_pphs/business_account" xsi:type="array">
<item name="scope" xsi:type="string">payment</item>
......
......@@ -35,5 +35,19 @@
<data name="tag" xsi:type="string">test_type:3rd_party_test, severity:S1</data>
<constraint name="Magento\Checkout\Test\Constraint\AssertCheckoutErrorMessage" />
</variation>
<variation name="OnePageCheckoutPayflowProWithCVVDoesNotMatch" summary="Place order via Payflow Pro with CVV verification fail" ticketId="MAGETWO-37485">
<data name="tag" xsi:type="string">test_type:3rd_party_test, severity:S1</data>
<data name="products/0" xsi:type="string">catalogProductSimple::product_10_dollar</data>
<data name="customer/dataset" xsi:type="string">default</data>
<data name="shippingAddress/dataset" xsi:type="string">US_address_1_without_email</data>
<data name="checkoutMethod" xsi:type="string">guest</data>
<data name="shipping/shipping_service" xsi:type="string">Flat Rate</data>
<data name="shipping/shipping_method" xsi:type="string">Fixed</data>
<data name="payment/method" xsi:type="string">payflowpro</data>
<data name="creditCard/dataset" xsi:type="string">visa_cvv_mismatch</data>
<data name="configData" xsi:type="string">payflowpro, payflowpro_avs_security_code_does_not_match</data>
<data name="expectedErrorMessage" xsi:type="string">An error occurred on the server. Please try to place the order again.</data>
<constraint name="Magento\Checkout\Test\Constraint\AssertCheckoutErrorMessage" />
</variation>
</testCase>
</config>
......@@ -118,5 +118,27 @@
<constraint name="Magento\Sales\Test\Constraint\AssertOrderStatusIsCorrect" />
<constraint name="Magento\Sales\Test\Constraint\AssertOrderPaymentInformation" />
</variation>
<variation name="OnePageCheckoutPayflowProWithCVVMatches" summary="Place order via Payflow Pro with success CVV verification" ticketId="MAGETWO-37484">
<data name="tag" xsi:type="string">test_type:3rd_party_test, severity:S1</data>
<data name="products/0" xsi:type="string">catalogProductSimple::product_10_dollar</data>
<data name="customer/dataset" xsi:type="string">default</data>
<data name="shippingAddress/dataset" xsi:type="string">US_address_1_without_email</data>
<data name="checkoutMethod" xsi:type="string">guest</data>
<data name="shipping/shipping_service" xsi:type="string">Flat Rate</data>
<data name="shipping/shipping_method" xsi:type="string">Fixed</data>
<data name="payment/method" xsi:type="string">payflowpro</data>
<data name="prices" xsi:type="array">
<item name="grandTotal" xsi:type="string">15.00</item>
</data>
<data name="creditCard/dataset" xsi:type="string">visa_default</data>
<data name="configData" xsi:type="string">payflowpro, payflowpro_avs_security_code_does_not_match</data>
<data name="paymentInfo" xsi:type="array">
<item name="AVS Street Match" xsi:type="string">#Y: Matched (CVV2CSC)</item>
</data>
<constraint name="Magento\Checkout\Test\Constraint\AssertOrderSuccessPlacedMessage" />
<constraint name="Magento\Sales\Test\Constraint\AssertOrderGrandTotal" />
<constraint name="Magento\Sales\Test\Constraint\AssertOrderPaymentInformation" />
<constraint name="Magento\Sales\Test\Constraint\AssertAuthorizationInCommentsHistory" />
</variation>
</testCase>
</config>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment