Skip to content

Commit 9ff32ce

Browse files
shanthishanthi
authored andcommitted
ACQE-6250: added AdminAuthorizeAnOrderActionGroup
1 parent e68b50b commit 9ff32ce

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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="AdminAuthorizeAnOrderActionGroup">
12+
<annotations>
13+
<description>Authorize the processing order on the Admin orders view page. Validates that the provided Order Status is present and correct.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="orderStatus" type="string" defaultValue="Processing"/>
17+
</arguments>
18+
<click selector="{{AdminOrderDetailsMainActionsSection.authorize}}" stepKey="clickCancelOrder"/>
19+
<waitForElement selector="{{AdminConfirmationModalSection.message}}" stepKey="waitForCancelConfirmation"/>
20+
<see selector="{{AdminConfirmationModalSection.message}}" userInput="Are you sure you want to authorize full order amount?" stepKey="seeConfirmationMessage"/>
21+
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmOrderCancel"/>
22+
<see selector="{{AdminMessagesSection.success}}" userInput="Payment authorization has been successfully created." stepKey="seeCancelSuccessMessage"/>
23+
<see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="{{orderStatus}}" stepKey="seeOrderStatusCanceled"/>
24+
</actionGroup>
25+
</actionGroups>

0 commit comments

Comments
 (0)