File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed
app/code/Magento/Sales/Test/Mftf Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 17
17
<element name =" customerEmail" type =" text" selector =" .order-account-information table tr:nth-of-type(2) > td a" />
18
18
<element name =" customerGroup" type =" text" selector =" .order-account-information table tr:nth-of-type(3) > td" />
19
19
<element name =" invoiceNoteComment" type =" text" selector =" div.note-list-comment" />
20
+ <element name =" sendEmail" type =" button" selector =" .send-email" />
21
+ <element name =" invoiceTitle" type =" text" selector =" .invoice-information .title" />
20
22
</section >
21
- </sections >
23
+ </sections >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" AdminInvoiceOrderInvoiceEmailSentTest" extends =" AdminInvoiceOrderTest" >
12
+ <annotations >
13
+ <features value =" Sales" />
14
+ <stories value =" Create an Invoice via the Admin and send email see confirmation" />
15
+ <title value =" Admin should be able to see confirmation message Of invoice email" />
16
+ <description value =" Admin should be able to see confirmation message Of invoice email" />
17
+ <severity value =" MAJOR" />
18
+ <testCaseId value =" git-36030" />
19
+ <group value =" sales" />
20
+ <group value =" cloud" />
21
+ </annotations >
22
+ <remove keyForRemoval =" checkIfOrderStatusIsProcessing" />
23
+ <click selector =" {{AdminInvoiceOrderInformationSection.sendEmail}}" stepKey =" clickSendEmail" />
24
+ <waitForElementVisible selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" waitForConfirmationSendEmail" />
25
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" confirmSendEmail" />
26
+ <grabTextFrom selector =" {{AdminInvoiceOrderInformationSection.invoiceTitle}}" stepKey =" grabTitle" />
27
+ <assertStringContainsString stepKey =" assertSendEmailConfirmation" >
28
+ <actualResult type =" const" >$grabTitle</actualResult >
29
+ <expectedResult type =" string" >The invoice confirmation email was sent</expectedResult >
30
+ </assertStringContainsString >
31
+ </test >
32
+ </tests >
You can’t perform that action at this time.
0 commit comments