File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
Sales/Test/Mftf/ActionGroup Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 72
72
<grabTextFrom selector =" {{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey =" grabTransactionID" />
73
73
<waitForText selector =" {{AdminOrderTotalSection.grandTotal}}" userInput =" $15.00" stepKey =" checkGrandTotal" />
74
74
<!-- Create invoice with not capture amount -->
75
- <waitForElementVisible selector =" {{AdminOrderDetailsMainActionsSection.invoice}}" stepKey =" waitForInvoicebtn" />
76
75
<actionGroup ref =" AdminCreateInvoiceNotCaptureActionGroup" stepKey =" createInvoiceNotCapture" />
77
76
<!-- Open invoice and cancel it -->
78
77
<actionGroup ref =" AdminOpenInvoiceFromOrderPageActionGroup" stepKey =" openInvoiceFromOrderPage" />
79
78
<actionGroup ref =" AdminClickCancelButtonInInvoiceActionGroup" stepKey =" clickCancelInvoiceButton" />
80
- <waitForPageLoad stepKey =" waitForLoadPage2" />
81
- <waitForText userInput =" You canceled the invoice." stepKey =" seeMessageInvoiceCanceled" />
82
79
</test >
83
80
</tests >
Original file line number Diff line number Diff line change 14
14
</annotations >
15
15
<waitForElementClickable selector =" {{AdminInvoiceMainActionsSection.cancel}}" stepKey =" waitForHoldButtonToBeClickable" />
16
16
<click selector =" {{AdminInvoiceMainActionsSection.cancel}}" stepKey =" clickCancelButton" />
17
+ <waitForPageLoad stepKey =" waitForLoadPage2" />
18
+ <waitForText userInput =" You canceled the invoice." stepKey =" seeMessageInvoiceCanceled" />
17
19
</actionGroup >
18
20
</actionGroups >
Original file line number Diff line number Diff line change 8
8
9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
- <actionGroup name =" AdminCreateInvoiceNotCaptureActionGroup" >
12
- <click selector =" {{AdminOrderDetailsMainActionsSection.invoice}}" stepKey =" clickInvoice" />
13
- <waitForPageLoad stepKey =" waitForInvoicePage" />
14
- <scrollTo selector =" {{AdminInvoiceMainActionsSection.selectModeOfAmount}}" x =" 0" y =" -80" stepKey =" scrollToAmount" />
15
- <selectOption userInput =" Not Capture" selector =" {{AdminInvoiceMainActionsSection.selectModeOfAmount}}" stepKey =" selectNotCaptureUnderAmount" />
16
- <waitForElementVisible selector =" {{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey =" waitForSubmitInvoicebtn" />
17
- <click selector =" {{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey =" submitInvoice" />
18
- <waitForPageLoad stepKey =" waitForLoadPage" />
19
- <waitForText userInput =" The invoice has been created." stepKey =" seeMessageInvoiceCreated" />
11
+ <actionGroup name =" AdminCreateInvoiceNotCaptureActionGroup" extends =" AdminCreateInvoiceActionGroup" >
12
+ <waitForElementVisible selector =" {{AdminOrderDetailsMainActionsSection.invoice}}" stepKey =" waitForInvoiceButton" before =" clickInvoice" />
13
+ <scrollTo selector =" {{AdminInvoiceMainActionsSection.selectModeOfAmount}}" x =" 0" y =" -80" stepKey =" scrollToAmount" after =" waitForInvoicePage" />
14
+ <selectOption userInput =" Not Capture" selector =" {{AdminInvoiceMainActionsSection.selectModeOfAmount}}" stepKey =" selectNotCaptureUnderAmount" after =" scrollToAmount" />
15
+ <waitForElementVisible selector =" {{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey =" waitForSubmitInvoicebtn" after =" selectNotCaptureUnderAmount" />
20
16
</actionGroup >
21
17
</actionGroups >
You can’t perform that action at this time.
0 commit comments