|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="PayPalSmartButtonInCheckoutPage"> |
| 11 | + <test name="StorefrontPaypalSmartButtonInCheckoutPageTest"> |
12 | 12 | <annotations>
|
13 |
| - <features value="PayPal"/> |
| 13 | + <features value="Paypal"/> |
14 | 14 | <stories value="Generic checkout skeleton flow"/>
|
15 |
| - <title value="Mainflow of PayPal Smart Button"/> |
16 |
| - <description value="Users are able to place order using PayPal Smart Button"/> |
| 15 | + <title value="Mainflow of Paypal Smart Button"/> |
| 16 | + <description value="Users are able to place order using Paypal Smart Button"/> |
17 | 17 | <severity value="CRITICAL"/>
|
18 | 18 | <testCaseId value="MC-13690"/>
|
19 | 19 | <skip>
|
|
32 | 32 | <createData entity="Simple_US_Customer" stepKey="createCustomer"/>
|
33 | 33 |
|
34 | 34 | <!-- Set Paypal express config -->
|
35 |
| - <magentoCLI command="config:set payment/paypal_express/active 1" stepKey="enablePaypal"/> |
36 |
| - <magentoCLI command="config:set payment/paypal_express/in_context 1" stepKey="enableInContextPayPal"/> |
37 |
| - <magentoCLI command="config:set payment/paypal_express/skip_order_review_step 1" stepKey="enableSkipOrderReview"/> |
38 |
| - <magentoCLI command="config:set payment/paypal_express/merchant_id {{_CREDS.magento/paypal_express_checkout_us_merchant_id}}" stepKey="setMerchantId"/> |
| 35 | + <magentoCLI command="config:set {{StorefrontPaypalEnableConfigData.path}} {{StorefrontPaypalEnableConfigData.value}}" stepKey="enablePaypal"/> |
| 36 | + <magentoCLI command="config:set {{StorefrontPaypalEnableInContextCheckoutConfigData.path}} {{StorefrontPaypalEnableInContextCheckoutConfigData.value}}" stepKey="enableInContextPayPal"/> |
| 37 | + <magentoCLI command="config:set {{StorefrontPaypalEnableSkipOrderReviewStepConfigData.path}} {{StorefrontPaypalEnableSkipOrderReviewStepConfigData.value}}" stepKey="enableSkipOrderReview"/> |
| 38 | + <magentoCLI command="config:set {{StorefrontPaypalMerchantAccountIdConfigData.path}} {{_CREDS.magento/paypal_express_checkout_us_merchant_id}}" stepKey="setMerchantId"/> |
39 | 39 | <createData entity="PaypalConfig" stepKey="createPaypalExpressConfig"/>
|
40 | 40 |
|
41 | 41 | <!-- Login -->
|
42 | 42 | <actionGroup ref="LoginActionGroup" stepKey="login"/>
|
43 | 43 | </before>
|
44 | 44 | <after>
|
45 | 45 | <!-- Cleanup Paypal configurations -->
|
46 |
| - <magentoCLI command="config:set payment/paypal_express/merchant_id ''" stepKey="deleteMerchantId"/> |
47 |
| - <magentoCLI command="config:set payment/paypal_express/skip_order_review_step 0" stepKey="disableSkipOrderReview"/> |
48 |
| - <magentoCLI command="config:set payment/paypal_express/in_context 0" stepKey="disableInContextPayPal"/> |
49 |
| - <magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePaypal"/> |
| 46 | + <magentoCLI command="config:set {{StorefrontPaypalMerchantAccountIdConfigData.path}} {{StorefrontPaypalMerchantAccountIdConfigData.value}}" stepKey="deleteMerchantId"/> |
| 47 | + <magentoCLI command="config:set {{StorefrontPaypalDisableSkipOrderReviewStepConfigData.path}} {{StorefrontPaypalDisableSkipOrderReviewStepConfigData.value}}" stepKey="disableSkipOrderReview"/> |
| 48 | + <magentoCLI command="config:set {{StorefrontPaypalDisableInContextCheckoutConfigData.path}} {{StorefrontPaypalDisableInContextCheckoutConfigData.value}}" stepKey="disableInContextPayPal"/> |
| 49 | + <magentoCLI command="config:set {{StorefrontPaypalDisableConfigData.path}} {{StorefrontPaypalDisableConfigData.value}}" stepKey="disablePaypal"/> |
50 | 50 | <createData entity="SamplePaypalConfig" stepKey="setDefaultPaypalConfig"/>
|
51 | 51 |
|
52 | 52 | <!-- Delete product -->
|
|
68 | 68 | <!-- Place an order using PayPal payment method -->
|
69 | 69 | <actionGroup ref="CreatePayPalOrderWithSelectedPaymentMethodActionGroup" stepKey="createPayPalOrder">
|
70 | 70 | <argument name="Category" value="$$createCategory$$"/>
|
71 |
| - <argument name="payerName" value="Alex"/> |
| 71 | + <argument name="payerName" value="{{Payer.firstName}}"/> |
72 | 72 | </actionGroup>
|
73 | 73 |
|
74 | 74 | <!-- PayPal checkout -->
|
75 |
| - <actionGroup ref="PayOrderOnPayPalCheckoutActionGroup" stepKey="payOrderOnPayPalCheckout"> |
| 75 | + <actionGroup ref="StorefrontPayOrderOnPayPalCheckoutActionGroup" stepKey="payOrderOnPayPalCheckout"> |
76 | 76 | <argument name="productName" value="$$createProduct.name$$"/>
|
77 | 77 | </actionGroup>
|
78 | 78 |
|
79 | 79 | <!-- I see order successful Page instead of Order Review Page -->
|
80 |
| - <actionGroup ref="VerifyCheckoutSuccessActionGroup" stepKey="verifyCheckoutSuccess"/> |
| 80 | + <actionGroup ref="AssertStorefrontCheckoutSuccessActionGroup" stepKey="assertCheckoutSuccess"/> |
81 | 81 | </test>
|
82 | 82 | </tests>
|
0 commit comments