|
15 | 15 | <description value="Create partial Capture for a Paypal Payflow Pro Order and and verify the transaction status after submit the Invoice."/> |
16 | 16 | <severity value="MAJOR"/> |
17 | 17 | <testCaseId value="AC-4795"/> |
18 | | - <group value="paypalPaymentsPro"/> |
| 18 | + <group value="paypalPayflowProWithOutVault"/> |
19 | 19 | <group value="3rd_party_integration"/> |
20 | 20 | <!-- <group value="pr_exclude" />--> |
21 | 21 | </annotations> |
|
29 | 29 | <!--Create Simple product--> |
30 | 30 | <createData entity="_defaultCategory" stepKey="createCategory"/> |
31 | 31 | <createData entity="SimpleProduct" stepKey="createSimpleProduct"> |
32 | | - <field key="price">10.00</field> |
| 32 | +<!-- <field key="price">10.00</field>--> |
| 33 | + <field key="quantity">5</field> |
33 | 34 | <requiredEntity createDataKey="createCategory"/> |
34 | 35 | </createData> |
35 | 36 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexConfig"> |
|
43 | 44 | </before> |
44 | 45 | <after> |
45 | 46 | <!-- Delete product and customer--> |
46 | | - <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 47 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/> |
47 | 48 | <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/> |
48 | 49 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
49 | 50 | <!-- Logout--> |
|
55 | 56 | </actionGroup> |
56 | 57 | <!-- <amOnPage url="{{StorefrontProductPage.url($$createProduct.custom_attributes[url_key]$$)}}" stepKey="goToStorefront"/>--> |
57 | 58 | <amOnPage url="{{StorefrontProductPage.url($$createSimpleProduct.custom_attributes[url_key]$$)}}" stepKey="amOnSimpleProductPage"/> |
58 | | - <actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="cartAddSimpleProductToCart"> |
59 | | - <argument name="product" value="$$createSimpleProduct$$"/> |
60 | | - <argument name="productCount" value="1"/> |
61 | | - </actionGroup> |
| 59 | +<!-- <actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="cartAddSimpleProductToCart">--> |
| 60 | +<!-- <argument name="product" value="$$createSimpleProduct$$"/>--> |
| 61 | +<!-- <argument name="productCount" value="1"/>--> |
| 62 | +<!-- </actionGroup>--> |
62 | 63 | <!-- Add product 1 to cart --> |
63 | | - <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage"> |
64 | | - <argument name="productName" value="$$createSimpleProduct.name$$"/> |
| 64 | +<!-- <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage">--> |
| 65 | +<!-- <argument name="productName" value="$$createSimpleProduct.name$$"/>--> |
| 66 | +<!-- </actionGroup>--> |
| 67 | + |
| 68 | + <actionGroup ref="StorefrontAddCategoryProductToCartWithQuantityNewActionGroup" stepKey="addToCartFromStorefrontProductPage1"> |
| 69 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 70 | + <argument name="quantity" value="5"/> |
65 | 71 | </actionGroup> |
66 | 72 | <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/> |
67 | 73 | <!-- Select shipping --> |
|
95 | 101 | <!-- Go to invoice tab and fill data --> |
96 | 102 | <actionGroup ref="AdminClickInvoiceButtonOrderViewActionGroup" stepKey="clickInvoiceAction"/> |
97 | 103 | <fillField selector="{{AdminOrderInvoiceViewSection.invoiceQty}}" userInput="2" stepKey="fillInvoiceQuantity"/> |
| 104 | + <waitForPageLoad stepKey="wait"/> |
| 105 | + <click selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="clickInvoiceAction1"/> |
98 | 106 | <click selector="{{AdminOrderInvoiceViewSection.updateInvoiceBtn}}" stepKey="clickUpdateQtyInvoiceBtn"/> |
99 | 107 | <!-- <fillField selector="{{AdminInvoiceTotalSection.invoiceComment}}" userInput="comment" stepKey="writeComment"/>--> |
100 | 108 | <actionGroup ref="AdminInvoiceClickSubmitActionGroup" stepKey="clickSubmitInvoice"/> |
|
107 | 115 | <grabTextFrom selector="{{AdminOrderDetailsInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="grabLastTransactionIDForCaptured"/> |
108 | 116 | <!--Open the comment history tab and assert the comment--> |
109 | 117 | <actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistoryAfterSubmittingInvoice"/> |
110 | | - <waitForText selector="{{AdminOrderCommentsTabSection.orderCommentsWithType('Captured amount')}}" userInput="Captured amount of $128.00 online. Transaction ID: "{$grabLastTransactionIDForCaptured}"" stepKey="seeOrderHistoryNotesAfterSubmittingInvoice"/> |
| 118 | + <waitForText selector="{{AdminOrderCommentsTabSection.orderCommentsWithType('Captured amount')}}" userInput="Captured amount of $20.00 online. Transaction ID: "{$grabLastTransactionIDForCaptured}"" stepKey="seeOrderHistoryNotesAfterSubmittingInvoice"/> |
111 | 119 |
|
112 | 120 | <!--Go to invoice page into the order--> |
113 | 121 | <actionGroup ref="GoToInvoiceIntoOrderActionGroup" stepKey="goToInvoiceIntoOrderPage"/> |
|
0 commit comments