Skip to content

MFTF: Extract Action Groups to separate files - magento/module-reports #25812

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

Merged
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
Expand Up @@ -16,29 +16,11 @@
<argument name="orderFromDate" type="string"/>
<argument name="orderToDate" type="string"/>
</arguments>

<click selector="{{OrderReportMainSection.here}}" stepKey="clickOnHere"/>
<fillField selector="{{OrderReportFilterSection.dateFrom}}" userInput="{{orderFromDate}}" stepKey="fillFromDate"/>
<fillField selector="{{OrderReportFilterSection.dateTo}}" userInput="{{orderToDate}}" stepKey="fillToDate"/>
<selectOption selector="{{OrderReportFilterSection.orderStatus}}" userInput="Any" stepKey="selectAnyOption"/>
<click selector="{{OrderReportMainSection.showReport}}" stepKey="showReport"/>
</actionGroup>

<actionGroup name="GenerateOrderReportForNotCancelActionGroup">
<annotations>
<description>Clicks on 'here' to refresh the grid data. Enters the provided Order From/To Dates and provided Order Status. Clicks on 'Show Report'.</description>
</annotations>
<arguments>
<argument name="orderFromDate" type="string"/>
<argument name="orderToDate" type="string"/>
<argument name="statuses" type="string"/>
</arguments>

<click selector="{{OrderReportMainSection.here}}" stepKey="clickOnHere"/>
<fillField selector="{{OrderReportFilterSection.dateFrom}}" userInput="{{orderFromDate}}" stepKey="fillFromDate"/>
<fillField selector="{{OrderReportFilterSection.dateTo}}" userInput="{{orderToDate}}" stepKey="fillToDate"/>
<selectOption selector="{{OrderReportFilterSection.orderStatus}}" userInput="Specified" stepKey="selectSpecifiedOption"/>
<selectOption selector="{{OrderReportFilterSection.orderStatusSpecified}}" parameterArray="{{statuses}}" stepKey="selectSpecifiedOptionStatus"/>
<click selector="{{OrderReportMainSection.showReport}}" stepKey="showReport"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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="GenerateOrderReportForNotCancelActionGroup">
<annotations>
<description>Clicks on 'here' to refresh the grid data. Enters the provided Order From/To Dates and provided Order Status. Clicks on 'Show Report'.</description>
</annotations>
<arguments>
<argument name="orderFromDate" type="string"/>
<argument name="orderToDate" type="string"/>
<argument name="statuses" type="string"/>
</arguments>

<click selector="{{OrderReportMainSection.here}}" stepKey="clickOnHere"/>
<fillField selector="{{OrderReportFilterSection.dateFrom}}" userInput="{{orderFromDate}}" stepKey="fillFromDate"/>
<fillField selector="{{OrderReportFilterSection.dateTo}}" userInput="{{orderToDate}}" stepKey="fillToDate"/>
<selectOption selector="{{OrderReportFilterSection.orderStatus}}" userInput="Specified" stepKey="selectSpecifiedOption"/>
<selectOption selector="{{OrderReportFilterSection.orderStatusSpecified}}" parameterArray="{{statuses}}" stepKey="selectSpecifiedOptionStatus"/>
<click selector="{{OrderReportMainSection.showReport}}" stepKey="showReport"/>
</actionGroup>
</actionGroups>