Skip to content

Commit e1caa4d

Browse files
committed
ACP2E-4001: Cancel invoice redirects to 404
1 parent ceea9de commit e1caa4d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminClickCancelButtonInInvoiceActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminClickCancelButtonInInvoiceActionGroup">
1212
<annotations>
13-
<description>Admin clicks cancel button on invoice page.</description>
13+
<description>Admin clicks cancel button from top menu on invoice page.</description>
1414
</annotations>
1515
<waitForElementClickable selector="{{AdminInvoiceMainActionsSection.cancel}}" stepKey="waitForHoldButtonToBeClickable"/>
1616
<click selector="{{AdminInvoiceMainActionsSection.cancel}}" stepKey="clickCancelButton"/>
17-
<waitForPageLoad stepKey="waitForLoadPage2"/>
17+
<waitForPageLoad stepKey="waitForLoadPage"/>
1818
<waitForText userInput="You canceled the invoice." stepKey="seeMessageInvoiceCanceled"/>
1919
</actionGroup>
2020
</actionGroups>

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminCreateInvoiceNotCaptureActionGroup.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminCreateInvoiceNotCaptureActionGroup" extends="AdminCreateInvoiceActionGroup">
12+
<annotations>
13+
<description>Admin creates invoice for online payment with No Capture option selected.</description>
14+
</annotations>
1215
<waitForElementVisible selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="waitForInvoiceButton" before="clickInvoice"/>
1316
<scrollTo selector="{{AdminInvoiceMainActionsSection.selectModeOfAmount}}" x="0" y="-80" stepKey="scrollToAmount" after="waitForInvoicePage"/>
1417
<selectOption userInput="Not Capture" selector="{{AdminInvoiceMainActionsSection.selectModeOfAmount}}" stepKey="selectNotCaptureUnderAmount" after="scrollToAmount"/>

0 commit comments

Comments
 (0)