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 7272 <grabTextFrom selector =" {{AdminOrderPaymentInformationSection.paymentInformationField('Last Transaction ID')}}" stepKey =" grabTransactionID" />
7373 <waitForText selector =" {{AdminOrderTotalSection.grandTotal}}" userInput =" $15.00" stepKey =" checkGrandTotal" />
7474 <!-- Create invoice with not capture amount -->
75- <waitForElementVisible selector =" {{AdminOrderDetailsMainActionsSection.invoice}}" stepKey =" waitForInvoicebtn" />
7675 <actionGroup ref =" AdminCreateInvoiceNotCaptureActionGroup" stepKey =" createInvoiceNotCapture" />
7776 <!-- Open invoice and cancel it -->
7877 <actionGroup ref =" AdminOpenInvoiceFromOrderPageActionGroup" stepKey =" openInvoiceFromOrderPage" />
7978 <actionGroup ref =" AdminClickCancelButtonInInvoiceActionGroup" stepKey =" clickCancelInvoiceButton" />
80- <waitForPageLoad stepKey =" waitForLoadPage2" />
81- <waitForText userInput =" You canceled the invoice." stepKey =" seeMessageInvoiceCanceled" />
8279 </test >
8380</tests >
Original file line number Diff line number Diff line change 1414 </annotations >
1515 <waitForElementClickable selector =" {{AdminInvoiceMainActionsSection.cancel}}" stepKey =" waitForHoldButtonToBeClickable" />
1616 <click selector =" {{AdminInvoiceMainActionsSection.cancel}}" stepKey =" clickCancelButton" />
17+ <waitForPageLoad stepKey =" waitForLoadPage2" />
18+ <waitForText userInput =" You canceled the invoice." stepKey =" seeMessageInvoiceCanceled" />
1719 </actionGroup >
1820</actionGroups >
Original file line number Diff line number Diff line change 88
99<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1010 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" />
2016 </actionGroup >
2117</actionGroups >
You can’t perform that action at this time.
0 commit comments