Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MFTF] Adding AdminGoToOrderStatusPageActionGroup #31603

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AdminGoToOrderStatusPageActionGroup">
<annotations>
<description>Goes to Stores->Order Status->Order Status Page.</description>
</annotations>

<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
<waitForPageLoad stepKey="waitForPageLoaded"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</after>

<!-- Go to new order status page -->
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>

<!-- Fill the form and validate message -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</after>

<!-- Go to new order status page -->
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>

<!-- Fill the form and validate message -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</after>

<!-- Go to new order status page -->
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>

<!-- Fill the form and validate message -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</after>

<!--Go to new order status page-->
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>

<!--Fill the form and validate save success message-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
</after>

<!-- Create order status -->
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
<waitForPageLoad stepKey="waitForOrderStatusPageLoad"/>
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForOrderStatusPageLoad"/>
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>

<!-- Fill form and validate message -->
Expand Down Expand Up @@ -119,8 +119,8 @@
<see selector="{{AdminMessagesSection.success}}" userInput="We canceled 1 order(s)." stepKey="seeSuccessMessage"/>

<!-- Unassign order status -->
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatus"/>
<waitForPageLoad stepKey="waitForStatusPageLoad"/>
<actionGroup ref="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatus"/>
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStatusPageLoad"/>
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterStatusGrid">
<argument name="statusLabel" value="{{defaultOrderStatus.label}}"/>
<argument name="statusCode" value="{{defaultOrderStatus.status}}"/>
Expand Down