Skip to content

Commit c5aed93

Browse files
committed
MC-4758: Convert MassOrdersUpdateTest to MFTF
1 parent 77eaa3e commit c5aed93

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,29 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminCreateInvoiceActionGroup">
12-
<!-- Start from order page sales/order/view/order_id/{{id}}/ -->
12+
<annotations>
13+
<description>Admin create invoice on order page by click on button Invoice</description>
14+
<page>AdminOrderDetailsPage</page>
15+
</annotations>
1316
<click selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="clickInvoice"/>
1417
<waitForPageLoad stepKey="waitForInvoicePage"/>
1518
<click selector="{{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey="submitInvoice"/>
1619
<waitForPageLoad stepKey="waitForLoadPage"/>
1720
<see userInput="The invoice has been created." stepKey="seeMessage"/>
1821
</actionGroup>
1922
<actionGroup name="AdminCreateInvoiceAndShipmentActionGroup" extends="AdminCreateInvoiceActionGroup">
23+
<annotations>
24+
<description>Admin create invoice and shipment</description>
25+
<page>AdminOrderDetailsPage</page>
26+
</annotations>
2027
<checkOption selector="{{AdminInvoicePaymentShippingSection.CreateShipment}}" stepKey="checkCreateShipment" after="waitForInvoicePage"/>
2128
<see userInput="You created the invoice and shipment." stepKey="seeMessage"/>
2229
</actionGroup>
2330
<actionGroup name="AdminCreateInvoiceAndCreditMemoActionGroup" extends="AdminCreateInvoiceActionGroup">
31+
<annotations>
32+
<description>Admin create invoice and credit memo</description>
33+
<page>AdminOrderDetailsPage</page>
34+
</annotations>
2435
<click selector="{{AdminOrderDetailsMainActionsSection.creditMemo}}" stepKey="pushButtonCreditMemo" after="seeMessage"/>
2536
<waitForPageLoad stepKey="waitForLoadingCreditMemoPage" after="pushButtonCreditMemo"/>
2637
<scrollTo selector="{{AdminCreditMemoTotalSection.submitRefundOffline}}" stepKey="scrollToBottom" after="waitForLoadingCreditMemoPage"/>

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,25 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminOrderActionOnGridActionGroup">
12+
<annotations>
13+
<description>Admin check order by OrderId in orders grid and select action by name</description>
14+
<page>AdminOrdersPage</page>
15+
</annotations>
1216
<arguments>
1317
<argument name="action" type="string"/>
1418
<argument name="orderId" type="string"/>
1519
</arguments>
1620
<checkOption selector="{{AdminOrdersGridSection.selectOrderID(orderId)}}" stepKey="selectOrder"/>
1721
<waitForLoadingMaskToDisappear stepKey="waitForCheck"/>
1822
<click selector="{{AdminOrdersGridSection.selectActions}}" stepKey="openActions"/>
19-
<click selector="{{AdminOrdersGridSection.dropdownActionItem(action)}}" stepKey="selectCancelAction"/>
23+
<click selector="{{AdminOrdersGridSection.dropdownActionItem(action)}}" stepKey="selectAction"/>
2024
<waitForPageLoad stepKey="waitForResults"/>
2125
</actionGroup>
2226
<actionGroup name="AdminTwoOrderActionOnGridActionGroup" extends="AdminOrderActionOnGridActionGroup">
27+
<annotations>
28+
<description>Admin check 2 orders by OrderId in orders grid and select action by name</description>
29+
<page>AdminOrdersPage</page>
30+
</annotations>
2331
<arguments>
2432
<argument name="secondOrderId" type="string"/>
2533
</arguments>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminOrderFilterByOrderIdAndStatusActionGroup">
12+
<annotations>
13+
<description>Admin filter order by OrderID and order status in Orders Grid</description>
14+
<page>AdminOrdersPage</page>
15+
</annotations>
1216
<arguments>
1317
<argument name="orderId" type="string"/>
1418
<argument name="orderStatus" type="string"/>

app/code/Magento/Sales/Test/Mftf/Section/AdminOrdersGridSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
<element name="productForOrder" type="button" selector="//td[contains(text(),'{{var}}')]" parameterized="true"/>
3535
<element name="selectActions" type="button" selector=".action-select-wrap > .action-select" timeout="30"/>
3636
<element name="dropdownActionItem" type="button" selector="(//div[contains(@class, 'action-menu-items')]//span[text()='{{action}}'])[1]" timeout="30" parameterized="true"/>
37-
<!-- <element name="dropdownActionItem" type="button" selector="//div[@class='col-xs-2']//li/span[text()='{{action}}']" timeout="10" parameterized="true"/>-->
3837
<element name="checkOrder" type="input" selector="//td[count(//div[@data-role='grid-wrapper'])]//input"/>
3938
<element name="orderActions" type="button" selector="//div[contains(concat(' ',normalize-space(@class),' '),' row-gutter ')]//button[@title='Select Items']"/>
4039
<element name="changeOrderStatus" type="button" selector="//div[contains(concat(' ',normalize-space(@class),' '),' row-gutter ')]//span[text()='{{status}}']" parameterized="true" timeout="30"/>

0 commit comments

Comments
 (0)