Skip to content

Commit 0e78b37

Browse files
committed
ACP2E-1369: clear previous error message if ajax request completed on subsequent try; added mftf
1 parent a2693b2 commit 0e78b37

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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="AdminOrderCheckCommentsHistoryTest">
12+
<annotations>
13+
<features value="Sales"/>
14+
<stories value="Admin order page"/>
15+
<title value="Check Comments History Tab"/>
16+
<description value="Check if order comments history tab is loading"/>
17+
<severity value="MINOR"/>
18+
<testCaseId value="AC-7087"/>
19+
<useCaseId value="ACP2E-1369"/>
20+
<group value="sales"/>
21+
</annotations>
22+
<before>
23+
24+
<createData entity="_defaultCategory" stepKey="createCategory"/>
25+
<createData entity="SimpleProduct" stepKey="createProduct">
26+
<requiredEntity createDataKey="createCategory"/>
27+
</createData>
28+
29+
<!-- Customer is created -->
30+
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
31+
<!-- Login to Admin -->
32+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
33+
34+
</before>
35+
<after>
36+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
37+
<!-- Delete products -->
38+
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
39+
40+
<!-- Delete Category -->
41+
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
42+
43+
<!-- Delete Customer -->
44+
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
45+
</after>
46+
47+
<!-- Create new customer order -->
48+
<comment userInput="Create new customer order" stepKey="createNewCustomerOrderComment"/>
49+
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="navigateToNewOrderWithExistingCustomer">
50+
<argument name="customer" value="$$createCustomer$$"/>
51+
</actionGroup>
52+
<!-- Add Simple product to order -->
53+
<comment userInput="Add Simple product to order" stepKey="addSimpleProductToOrderComment"/>
54+
<actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addSimpleProductToTheOrder">
55+
<argument name="product" value="$$createProduct$$"/>
56+
</actionGroup>
57+
<!-- Select FlatRate shipping method -->
58+
<comment userInput="Select FlatRate shipping method" stepKey="selectFlatRateShippingMethodComment"/>
59+
<actionGroup ref="AdminSelectFlatRateShippingMethodActionGroup" stepKey="selectFlatRateShippingMethod"/>
60+
<!-- Submit order -->
61+
<comment userInput="Submit order" stepKey="submitOrderComment"/>
62+
<actionGroup ref="AdminOrderClickSubmitOrderActionGroup" stepKey="submitOrder" />
63+
<!-- Verify order information -->
64+
<comment userInput="Verify order information" stepKey="verifyOrderInformationComment"/>
65+
<actionGroup ref="VerifyCreatedOrderInformationActionGroup" stepKey="verifyCreatedOrderInformation"/>
66+
<comment userInput="BIC workaround" stepKey="orderId"/>
67+
<grabTextFrom selector="|Order # (\d+)|" stepKey="orderNumber"/>
68+
69+
<!--Go to Comments history and switch to Information -->
70+
<click selector="{{AdminOrderDetailsOrderViewSection.commentsHistory}}" stepKey="goToCommentsHistory1"/>
71+
<click selector="{{AdminOrderDetailsOrderViewSection.information}}" stepKey="goToInformation"/>
72+
<see userInput="A technical problem with the server created an error" stepKey="seeTechnicalErrorMessage"/>
73+
74+
<!--Go to Comments history and don't see the error message -->
75+
<click selector="{{AdminOrderDetailsOrderViewSection.commentsHistory}}" stepKey="goToCommentsHistory2"/>
76+
<waitForPageLoad stepKey="waitForCommentsHistoryPage"/>
77+
<see userInput="Order Placed by Store Administrator" stepKey="seeMessageOrderCreatedByAdmin"/>
78+
<dontSee userInput="A technical problem with the server created an error" stepKey="dontSeeTechnicalErrorMessage"/>
79+
80+
</test>
81+
</tests>

0 commit comments

Comments
 (0)