Skip to content

Commit 44c8c4d

Browse files
committed
ACQE-6741:Create Partial Capture for Order Paid with PayPal Payments Standard
updated on testcases
1 parent 95178c8 commit 44c8c4d

File tree

2 files changed

+38
-9
lines changed

2 files changed

+38
-9
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="DummyDataActionGroup">
11+
<annotations>
12+
<description>On Storefront Login To PayPal Express Checkout Payflow Edition .</description>
13+
</annotations>
14+
15+
<!--Check in-context-->
16+
<switchToNextTab stepKey="switchToInContentTab"/>
17+
<waitForPageLoad stepKey="waitForPayPalPageToLoad"/>
18+
<waitForElementVisible selector="{{PayPalPaymentSection.email}}" stepKey="waitForEmailField" />
19+
<fillField selector="{{PayPalPaymentSection.email}}" userInput="orykh@adobe.com" stepKey="fillEmail"/>
20+
<waitForElementVisible selector="{{PayPalPaymentSection.password}}" stepKey="waitForPasswordFieldToBeVisible" />
21+
<fillField selector="{{PayPalPaymentSection.password}}" userInput="123123qQ1" stepKey="fillPassword"/>
22+
<waitForElementClickable selector="{{PayPalPaymentSection.loginBtn}}" stepKey="waitForLoginField"/>
23+
<click selector="{{PayPalPaymentSection.loginBtn}}" stepKey="login"/>
24+
<waitForPageLoad stepKey="waitForDetailsPageToOpen"/>
25+
</actionGroup>
26+
</actionGroups>

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<!-- Click on PayPal payment radio button and click on continue btn -->
5454
<actionGroup ref="AdminSelectPaypalStandardPaymentInPaymentPageActionGroup" stepKey="selectPaypalStandardPaymentAndClickOnContinuebtn"/>
5555
<!-- Login to Paypal in-context and verify order total on paypal page-->
56-
<actionGroup ref="StorefrontLoginToPayPalStandardActionGroup" stepKey="loginToPayPal"/>
56+
<actionGroup ref="DummyDataActionGroup" stepKey="loginToPayPal"/>
5757
<actionGroup ref="StorefrontPaypalSwitchBackToMagentoFromCheckoutPageActionGroup" stepKey="confirmPaymentAndGoBackToMagento"/>
5858
<waitForText selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage"/>
5959
<waitForText selector="{{CheckoutSuccessMainSection.success}}" userInput="We'll email you an order confirmation with details and tracking info." stepKey="seeSuccessMessage"/>
@@ -85,17 +85,20 @@
8585
<actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="checkOrderStatus">
8686
<argument name="status" value="Processing"/>
8787
</actionGroup>
88-
<!--Open Invoice-->
89-
<waitForElementClickable selector="{{AdminOrderDetailsOrderViewSection.invoices}}" stepKey="waitForInvoicesTabClickable" />
90-
<click selector="{{AdminOrderDetailsOrderViewSection.invoices}}" stepKey="openInvoicesTab"/>
91-
<!--Check Invoice Section -->
92-
<waitForElementVisible selector="{{AdminOrderDetailsMainActionsSection.invoiceTabContent}}" stepKey="waitForInvoiceSectionContentToBeAppeared"/>
93-
<waitForElementClickable selector="{{AdminOrderDetailsOrderViewSection.information}}" stepKey="waitForClickOrderInformation"/>
94-
<click selector="{{AdminOrderDetailsOrderViewSection.information}}" stepKey="clickInformation"/>
9588
<waitForPageLoad stepKey="waitForOrderInformationTabLoadingMask"/>
96-
9789
<waitForElementVisible selector="{{AdminOrderDetailsInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="waitForLastTransactionIDFieldToBeAppearedAfterSubmittingInvoice"/>
9890
<grabTextFrom selector="{{AdminOrderDetailsInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="grabLastTransactionIDForCaptured"/>
91+
<waitForPageLoad stepKey="waitUntilInvoiceTabIsOpened"/>
92+
<!--Open invoice tab and verify the invoice is present-->
93+
<click selector="{{AdminOrderDetailsOrderViewSection.invoices}}" stepKey="clickOrderInvoicesTab"/>
94+
<waitForLoadingMaskToDisappear stepKey="waitForInvoiceGridLoadingMask" />
95+
<see selector="{{AdminOrderInvoicesTabSection.gridRow('1')}}" userInput="{{Simple_US_Customer.firstname}}" stepKey="seeOrderInvoiceInTabGrid"/>
96+
<waitForElementClickable selector="{{AdminOrderInvoicesTabSection.viewGridRow('1')}}" stepKey="waitForClickToViewInvoiceRow"/>
97+
<conditionalClick selector="{{AdminOrderInvoicesTabSection.viewGridRow('1')}}" dependentSelector="{{AdminOrderInvoicesTabSection.viewGridRow('1')}}" visible="true" stepKey="clickToViewInvoiceRow"/>
98+
<see selector="{{AdminInvoiceOrderInformationSection.orderId}}" userInput="{$grabOrderNumber}" stepKey="seeOrderIdOnInvoice" />
99+
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openAgainOrderPage">
100+
<argument name="orderId" value="{$grabOrderNumber}"/>
101+
</actionGroup>
99102
<!--Open the comment history tab and assert the comment-->
100103
<actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistoryAfterSubmittingInvoice"/>
101104
<waitForText selector="{{AdminOrderCommentsTabSection.orderCommentsWithType('Captured amount')}}" userInput="Captured amount of $135.15 online. Transaction ID: &quot;{$grabLastTransactionIDForCaptured}&quot;" stepKey="seeOrderHistoryNotesAfterSubmittingInvoice"/>

0 commit comments

Comments
 (0)