|
25 | 25 | <!--Create Simple product--> |
26 | 26 | <createData entity="_defaultCategory" stepKey="createCategory"/> |
27 | 27 | <createData entity="SimpleProduct" stepKey="createSimpleProduct"> |
28 | | -<!-- <field key="price">10.00</field>--> |
29 | 28 | <field key="quantity">5</field> |
30 | 29 | <requiredEntity createDataKey="createCategory"/> |
31 | 30 | </createData> |
|
92 | 91 | <click selector="{{AdminOrderInvoiceViewSection.updateInvoiceBtn}}" stepKey="clickUpdateQtyInvoiceBtn"/> |
93 | 92 | <actionGroup ref="AdminInvoiceClickSubmitActionGroup" stepKey="clickSubmitInvoice"/> |
94 | 93 | <!-- Assert invoice with shipment success message --> |
95 | | - <see selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="The invoice has been created." stepKey="seeSuccessMessage"/> |
| 94 | + <waitForText selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="The invoice has been created." stepKey="seeSuccessMessage"/> |
96 | 95 | <actionGroup ref="AdminOrderViewCheckStatusActionGroup" stepKey="checkOrderStatus"> |
97 | 96 | <argument name="status" value="Processing"/> |
98 | 97 | </actionGroup> |
|
101 | 100 | <!--Open the comment history tab and assert the comment--> |
102 | 101 | <actionGroup ref="AdminOpenOrderCommentsHistoryActionGroup" stepKey="clickOnCommentsHistoryAfterSubmittingInvoice"/> |
103 | 102 | <waitForText selector="{{AdminOrderCommentsTabSection.orderCommentsWithType('Captured amount')}}" userInput="Captured amount of $271.00 online. Transaction ID: "{$grabLastTransactionIDForCaptured}"" stepKey="seeOrderHistoryNotesAfterSubmittingInvoice"/> |
| 103 | + <waitForElementClickable selector="{{StorefrontOrderInvoicesSection.invoiceTab1}}" stepKey="waitForInvoiceTabToBeClicked"/> |
104 | 104 | <!--Go to Invoice Tab and Verify Invoice Grand Total--> |
105 | 105 | <click selector="{{StorefrontOrderInvoicesSection.invoiceTab1}}" stepKey="clickInvoiceTabOnStorefront"/> |
| 106 | + <waitForElementClickable selector="{{StorefrontOrderInvoicesSection.clickView}}" stepKey="waitForViewButtonToBeClicked"/> |
106 | 107 | <click selector="{{StorefrontOrderInvoicesSection.clickView}}" stepKey="clickViewButton"/> |
107 | | - <see selector="{{AdminInvoiceTotalSection.grandTotal}}" userInput="$271.00" stepKey="seeInvoiceSubTotal1"/> |
| 108 | + <waitForText selector="{{AdminInvoiceTotalSection.grandTotal}}" userInput="$271.00" stepKey="seeInvoiceSubTotal1"/> |
108 | 109 | <waitForElementClickable selector="{{AdminProductFormActionSection.backButton}}" stepKey="waitForBackButtonToBeClickedAfterAsserting"/> |
109 | 110 | <click selector="{{AdminProductFormActionSection.backButton}}" stepKey="clickBackButtonAfterAsserting"/> |
110 | 111 | <actionGroup ref="AdminAssertTransitionTypeStatusNewActionGroup" stepKey="assertTransactionTypeStatusForAuthorization"> |
|
0 commit comments