|
7 | 7 | -->
|
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
9 | 9 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
10 |
| - <test name="AdminCaptureInvoiceForPaypalBillingAgreementPaymentAdvancedTest"> |
| 10 | + <test name="StorefrontPartialCaptureInvoiceForPaypalExpressPayflowEditionTest"> |
11 | 11 | <annotations>
|
12 | 12 | <features value="PayPal"/>
|
13 |
| - <stories value="Partial Capture Order with Payments Advanced"/> |
14 |
| - <title value="Check Partial Capture order placed with Paypal Payments Advanced"/> |
15 |
| - <description value="Place an order with Paypal Payments Advanced as payment method and Partial Capture the Order"/> |
| 13 | + <stories value="Partial Capture Order with Payflow Edition"/> |
| 14 | + <title value="Partial Capture for a sales order placed with PayPal Express Checkout (Payflow Edition)"/> |
| 15 | + <description value="Place an order with Paypal express checkout payflow edition as payment method and Partial Capture the Order"/> |
16 | 16 | <severity value="MAJOR"/>
|
17 |
| - <testCaseId value="AC-4833"/> |
| 17 | + <testCaseId value="AC-4846"/> |
18 | 18 | <group value="3rd_party_integration"/>
|
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 | 21 | <!-- Simple product is created -->
|
22 | 22 | <createData entity="SimpleProduct" stepKey="createProduct"/>
|
| 23 | + <createData entity="SimpleProduct2" stepKey="createAnotherProduct"/> |
23 | 24 | <!-- US Customer is created -->
|
24 | 25 | <createData entity="Simple_US_Customer_CA" stepKey="createCustomer"/>
|
25 | 26 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
26 | 27 | <!-- Configure PayPal Express Checkout -->
|
27 |
| - <actionGroup ref="AdminConfigurationPaymentAdvancedActionGroup" stepKey="ConfigPaymentAdvanced"/> |
| 28 | + <actionGroup ref="AdminConfigPaymentAdvancedThroughCLIActionGroup" stepKey="ConfigPaymentAdvanced"/> |
| 29 | + |
| 30 | + <actionGroup ref="AdminConfigurationPaymentAdvancedActionGroup" stepKey="setValuesForUserAndPwd"/> |
| 31 | + |
28 | 32 | <magentoCLI command="config:set payment/payflow_advanced/active 1" stepKey="enablePaymentAdvancedSolution"/>
|
29 | 33 | <magentoCLI command="config:set payment/payflow_express_bml/active 1" stepKey="enablePaypalCredit"/>
|
30 |
| - <magentoCLI command="config:set payment/payflow_express/active 1" stepKey="enablePayPalVault"/> |
31 |
| - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="runIndexCronJob"> |
32 |
| - <argument name="indices" value="cataloginventory_stock"/> |
| 34 | + <magentoCLI command="config:set payment/payflow_express/active 1" stepKey="enablePayPalVault"/><actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 35 | + <argument name="indices" value=""/> |
33 | 36 | </actionGroup>
|
34 | 37 | <!-- Login to StoreFront -->
|
35 | 38 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="storefrontCustomerLogin">
|
|
38 | 41 | <!-- Open Product Page to add product in the cart -->
|
39 | 42 | <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="amOnProductPage">
|
40 | 43 | <argument name="product" value="$createProduct$"/>
|
| 44 | + |
41 | 45 | </actionGroup>
|
42 | 46 | <scrollTo selector="{{StorefrontProductActionSection.quantity}}" stepKey="scrollToQuantityField"/>
|
43 | 47 | <actionGroup ref="AddProductWithQtyToCartFromStorefrontProductPageActionGroup" stepKey="addProductToCart">
|
|
49 | 53 | <actionGroup ref="CheckoutSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShipping"/>
|
50 | 54 | <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/>
|
51 | 55 | <!-- Click on PayPal payment radio button -->
|
52 |
| - <waitForElementClickable selector="{{AdminConfigurepaymentsAdvancedSection.payFlowExpress}}" stepKey="waitForPayPalRadioButton"/> |
53 |
| - <click selector="{{AdminConfigurepaymentsAdvancedSection.payFlowExpress}}" stepKey="selectPaypalPayment"/> |
54 |
| - <waitForElementClickable selector="{{AdminConfigurepaymentsAdvancedSection.continueButton}}" stepKey="waitForPayPalBtn"/> |
55 |
| - <click selector="{{AdminConfigurepaymentsAdvancedSection.continueButton}}" stepKey="clickPayPalBtn"/> |
| 56 | + <waitForElementClickable selector="{{AdminConfigurepaymentsAdvancedSection.payflowEdition}}" stepKey="waitForPayPalRadioButton"/> |
| 57 | + <click selector="{{AdminConfigurepaymentsAdvancedSection.payflowEdition}}" stepKey="selectPaypalPayment"/> |
| 58 | + <waitForElementClickable selector="{{CheckoutPaymentSection.ContinuePayPalBtn}}" stepKey="waitForPayPalBtn"/> |
| 59 | + <click selector="{{CheckoutPaymentSection.ContinuePayPalBtn}}" stepKey="clickPayPalBtn"/> |
56 | 60 | <actionGroup ref="StorefrontLoginToPayPalExpressCheckoutPayFlowEditionActionGroup" stepKey="loginToPayPal"/>
|
57 | 61 | <actionGroup ref="StorefrontPaypalSwitchBackToMagentoFromCheckoutPageActionGroup" stepKey="confirmPaymentAndGoBackToMagento"/>
|
58 | 62 | <waitForText selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage"/>
|
|
61 | 65 | <after>
|
62 | 66 | <deleteData createDataKey="createProduct" stepKey="deleteSimpleProduct"/>
|
63 | 67 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
64 |
| - <magentoCLI command="config:set payment/payflow_express_bml/active 0" stepKey="disablePaypalCredit"/> |
65 |
| - <magentoCLI command="config:set payment/payflow_advanced/active 0" stepKey="disablePaymentAdvancedSolution"/> |
| 68 | + <magentoCLI command="config:set {{DisablePaymentAdvancedSolution.path}} {{DisablePaymentAdvancedSolution.value}}" stepKey="setEnablePayflowAdvancedToNo"/> |
66 | 69 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
67 | 70 | </after>
|
68 | 71 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="orderNumber"/>
|
|
101 | 104 | </actionGroup>
|
102 | 105 | </test>
|
103 | 106 | </tests>
|
| 107 | + |
0 commit comments