Skip to content

Commit 6e5e3ab

Browse files
committed
ACQE-6500: [AC-6137]PayPalSmartButtonInProductPage
AddedAssertStepsInTestFileToCheckGrandTotalAndCommentsHistoryDetails
1 parent 9e64edc commit 6e5e3ab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@
8080
<actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="seeAdminOrderStatus">
8181
<argument name="status" value="Processing"/>
8282
</actionGroup>
83+
<!--Assert the total-->
84+
<waitForText selector="{{AdminOrderTotalSection.grandTotal}}" userInput="$123.00" stepKey="checkGrandTotal"/>
85+
<!--Grab the transaction id-->
86+
<waitForElementVisible selector="{{AdminOrderDetailsInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="waitForTransactionIDFieldToBeAppeared"/>
87+
<grabTextFrom selector="{{AdminOrderDetailsInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey="grabTransactionID"/>
88+
<!--Open comment history tab and assert the comment-->
89+
<actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistory"/>
90+
<waitForText selector="{{AdminOrderCommentsTabSection.orderCommentsWithType('Ordered amount')}}" userInput="Ordered amount of $123.00 Transaction ID: &quot;{$grabTransactionID}&quot;" stepKey="seeOrderHistoryNotes"/>
91+
<waitForText selector="{{AdminOrderCommentsTabSection.orderStatus}}" userInput="Processing" stepKey="assertOrderStatusInCommentsHistorySection"/>
8392
<!--Assert Authorize button is present and Invoice button is absent-->
8493
<actionGroup ref="AdminAssertAuthorizeButtonOnOrderPageActionGroup" stepKey="assertAuthorizeButtonIsPresent"/>
8594
<dontSee selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="dontSeeInvoiceButton"/>

0 commit comments

Comments
 (0)