|
53 | 53 | <!-- Click on PayPal payment radio button and click on continue btn --> |
54 | 54 | <actionGroup ref="AdminSelectPaypalStandardPaymentInPaymentPageActionGroup" stepKey="selectPaypalStandardPaymentAndClickOnContinuebtn"/> |
55 | 55 | <!-- Login to Paypal in-context and verify order total on paypal page--> |
56 | | - <actionGroup ref="StorefrontLoginToPayPalStandardActionGroup" stepKey="loginToPayPal"/> |
| 56 | + <actionGroup ref="DummyDataActionGroup" stepKey="loginToPayPal"/> |
57 | 57 | <actionGroup ref="StorefrontPaypalSwitchBackToMagentoFromCheckoutPageActionGroup" stepKey="confirmPaymentAndGoBackToMagento"/> |
58 | 58 | <waitForText selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForLoadSuccessPage"/> |
59 | 59 | <waitForText selector="{{CheckoutSuccessMainSection.success}}" userInput="We'll email you an order confirmation with details and tracking info." stepKey="seeSuccessMessage"/> |
|
85 | 85 | <actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="checkOrderStatus"> |
86 | 86 | <argument name="status" value="Processing"/> |
87 | 87 | </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"/> |
95 | 88 | <waitForPageLoad stepKey="waitForOrderInformationTabLoadingMask"/> |
96 | | - |
97 | 89 | <waitForElementVisible selector="{{AdminOrderDetailsInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="waitForLastTransactionIDFieldToBeAppearedAfterSubmittingInvoice"/> |
98 | 90 | <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> |
99 | 102 | <!--Open the comment history tab and assert the comment--> |
100 | 103 | <actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistoryAfterSubmittingInvoice"/> |
101 | 104 | <waitForText selector="{{AdminOrderCommentsTabSection.orderCommentsWithType('Captured amount')}}" userInput="Captured amount of $135.15 online. Transaction ID: "{$grabLastTransactionIDForCaptured}"" stepKey="seeOrderHistoryNotesAfterSubmittingInvoice"/> |
|
0 commit comments