Skip to content

Commit 609e41e

Browse files
committed
Merge remote-tracking branch 'local/ACP2E-450-MFTF' into PR_19_May_2022_Odubovyk
2 parents 9147bf1 + a466be1 commit 609e41e

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>

0 commit comments

Comments
 (0)