Skip to content

Commit

Permalink
added AdminGoToOrderStatusPageActionGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaAPak committed Jan 9, 2021
1 parent 63434d2 commit b1a8873
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 6 deletions.
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 name="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 name="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 name="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,7 +47,7 @@
</after>

<!-- Create order status -->
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatusPage"/>
<actionGroup name="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatusPage"/>
<waitForPageLoad stepKey="waitForOrderStatusPageLoad"/>
<click selector="{{AdminMainActionsSection.add}}" stepKey="clickCreateNewStatus"/>

Expand Down Expand Up @@ -119,7 +119,7 @@
<see selector="{{AdminMessagesSection.success}}" userInput="We canceled 1 order(s)." stepKey="seeSuccessMessage"/>

<!-- Unassign order status -->
<amOnPage url="{{AdminOrderStatusPage.url}}" stepKey="goToOrderStatus"/>
<actionGroup name="AdminGoToOrderStatusPageActionGroup" stepKey="goToOrderStatus"/>
<waitForPageLoad stepKey="waitForStatusPageLoad"/>
<actionGroup ref="FilterOrderStatusByLabelAndCodeActionGroup" stepKey="filterStatusGrid">
<argument name="statusLabel" value="{{defaultOrderStatus.label}}"/>
Expand Down

0 comments on commit b1a8873

Please sign in to comment.