Skip to content

Commit aa79ff1

Browse files
shanthishanthi
authored andcommitted
ACQE-6250: Modified AdminAuthorizeAnOrderActionGroup
1 parent 9ff32ce commit aa79ff1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminAuthorizeAnOrderActionGroup.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
<arguments>
1616
<argument name="orderStatus" type="string" defaultValue="Processing"/>
1717
</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"/>
18+
<waitForElementClickable selector="{{AdminOrderDetailsMainActionsSection.authorize}}" stepKey="waitForAuthorizeButtonToBeClickable"/>
19+
<click selector="{{AdminOrderDetailsMainActionsSection.authorize}}" stepKey="clickCancelOrder"/>
20+
<waitForText selector="{{AdminConfirmationModalSection.message}}" userInput="Are you sure you want to authorize full order amount?" stepKey="seeConfirmationMessage"/>
21+
<waitForElementClickable selector="{{AdminConfirmationModalSection.ok}}" stepKey="waitForOkayButtonToAppeare"/>
22+
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="confirmOrder"/>
23+
<waitForText selector="{{AdminMessagesSection.success}}" userInput="Payment authorization has been successfully created." stepKey="seeAuthorizedSuccessMessage"/>
24+
<waitForText selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="{{orderStatus}}" stepKey="seeOrderStatus"/>
2425
</actionGroup>
2526
</actionGroups>

0 commit comments

Comments
 (0)