File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed
app/code/Magento/Sales/Test/Mftf Expand file tree Collapse file tree 3 files changed +51
-0
lines changed 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+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11+ <actionGroup name =" AdminEditOrderActionGroup" >
12+ <arguments >
13+ <argument name =" orderId" type =" string" />
14+ </arguments >
15+
16+ <waitForElementVisible selector =" {{AdminOrderDetailsMainActionsSection.edit}}" stepKey =" waitForEditButton" />
17+ <click selector =" {{AdminOrderDetailsMainActionsSection.edit}}" stepKey =" clickEditButton" />
18+ <see selector =" {{AdminEditConfirmationModalSection.message}}" userInput =" Are you sure? This order will be canceled and a new one will be created instead." stepKey =" seeConfirmationMessage" />
19+ <click selector =" {{AdminEditConfirmationModalSection.ok}}" stepKey =" confirmOrderEdit" />
20+ <see selector =" {{AdminOrderFormActionSection.pageHeader}}" userInput =" Edit Order #{{orderId}}" stepKey =" seeOrderStatus" />
21+ </actionGroup >
22+ </actionGroups >
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+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11+ <section name =" AdminEditConfirmationModalSection" >
12+ <element name =" message" type =" text" selector =" .modal-content div[class='ui-dialog-content ui-widget-content']" />
13+ <element name =" ok" type =" button" selector =" .modal-footer button[data-role='action']" timeout =" 30" />
14+ </section >
15+ </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+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11+ <section name =" AdminOrderEditMessagesSection" >
12+ <element name =" error" type =" text" selector =" div.message-error" />
13+ </section >
14+ </sections >
You can’t perform that action at this time.
0 commit comments