Skip to content

Commit 99cc417

Browse files
committed
Automated Test coverage Added
1 parent ceda293 commit 99cc417

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

app/code/Magento/Sales/Test/Mftf/Section/AdminInvoiceOrderInformationSection.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@
1717
<element name="customerEmail" type="text" selector=".order-account-information table tr:nth-of-type(2) > td a"/>
1818
<element name="customerGroup" type="text" selector=".order-account-information table tr:nth-of-type(3) > td"/>
1919
<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"/>
2022
</section>
21-
</sections>
23+
</sections>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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>

0 commit comments

Comments
 (0)