File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
app/code/Magento/Sales/Test/Mftf Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 47
47
48
48
<actionGroup name =" SubmitInvoice" >
49
49
<click selector =" {{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey =" clickSubmitInvoice" />
50
+ <waitForElementVisible selector =" {{AdminMessagesSection.successMessage}}" stepKey =" waitForMessageAppears" />
51
+ <see selector =" {{AdminMessagesSection.successMessage}}" userInput =" The invoice has been created." stepKey =" seeInvoiceCreateSuccess" />
50
52
<grabFromCurrentUrl regex =" ~/order_id/(\d+)/~" stepKey =" grabOrderId" />
51
53
<seeInCurrentUrl url =" {{AdminOrderDetailsPage.url('$grabOrderId')}}" stepKey =" seeViewOrderPageInvoice" />
52
- <see selector =" {{AdminMessagesSection.successMessage}}" userInput =" The invoice has been created." stepKey =" seeInvoiceCreateSuccess" />
53
54
</actionGroup >
54
55
</actionGroups >
Original file line number Diff line number Diff line change 9
9
<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
11
<section name =" AdminInvoiceMainActionsSection" >
12
- <element name =" submitInvoice" type =" button" selector =" .action-default.scalable.save.submit-button.primary" timeout =" 30 " />
12
+ <element name =" submitInvoice" type =" button" selector =" .action-default.scalable.save.submit-button.primary" timeout =" 60 " />
13
13
</section >
14
14
</sections >
Original file line number Diff line number Diff line change 72
72
<click selector =" {{AdminOrderFormActionSection.submitOrder}}" after =" selectFreeShippingOption" stepKey =" clickSubmitOrder" />
73
73
74
74
<!-- Click *Invoice* button-->
75
- <click selector =" {{AdminOrderDetailsMainActionsSection.invoice}}" stepKey =" clickInvoiceButton" />
76
- <see selector =" {{AdminHeaderSection.pageTitle}}" userInput =" New Invoice" after =" clickInvoiceButton" stepKey =" seeNewInvoiceInPageTitle" />
77
- <waitForPageLoad stepKey =" waitForInvoicePageOpened" />
78
-
79
- <click selector =" {{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey =" clickSubmitInvoice" />
80
- <see userInput =" The invoice has been created." stepKey =" seeCorrectMessage" />
75
+ <actionGroup ref =" StartCreateInvoiceFromOrderPage" stepKey =" startCreateInvoice" />
76
+ <actionGroup ref =" SubmitInvoice" stepKey =" submitInvoice" />
81
77
82
78
<!-- Verify that *Credit Memo* button is displayed-->
83
79
<seeElement selector =" {{AdminOrderDetailsMainActionsSection.creditMemo}}" stepKey =" seeCreditMemo" />
84
80
<click selector =" {{AdminOrderDetailsMainActionsSection.creditMemo}}" stepKey =" clickCreditMemoItem" />
85
81
<waitForPageLoad stepKey =" waitForCreditMemoPageLoaded" />
86
- <see userInput =" New Memo" stepKey =" seeNewMemoPage " />
87
- <seeInCurrentUrl url =" {{AdminCreditMemoNewPage.url}}" stepKey =" seeUrlOnPage " />
82
+ <see selector = " {{AdminHeaderSection.pageTitle}} " userInput =" New Memo" stepKey =" seeNewMemoPageTitle " />
83
+ <seeInCurrentUrl url =" {{AdminCreditMemoNewPage.url}}" stepKey =" seeNewMemoUrlOnPage " />
88
84
</test >
89
85
</tests >
You can’t perform that action at this time.
0 commit comments