Skip to content

Commit 53d3596

Browse files
committed
MC-37688: There are no options in the “Actions” drop-down list on the Archive Invoices, Shipments, Credit Memos pages
1 parent 5ee9e62 commit 53d3596

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminAssertActionOnInvoiceGridPageActionGroup">
12+
<arguments>
13+
<argument name="action" type="string"/>
14+
</arguments>
15+
<click selector="{{AdminInvoicesGridSection.selectActions}}" stepKey="openActions"/>
16+
<seeElement selector="{{AdminInvoicesGridSection.dropdownActionItem(action)}}" stepKey="seeAction"/>
17+
</actionGroup>
18+
</actionGroups>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@
1313
<element name="filter" type="button" selector="#container > div > div.admin__data-grid-header > div:nth-child(1) > div.data-grid-filters-actions-wrap > div > button"/>
1414
<element name="firstRow" type="button" selector="tr.data-row:nth-of-type(1)"/>
1515
<element name="clearFilters" type="button" selector="button.action-clear" timeout="30"/>
16+
<element name="selectActions" type="button" selector=".action-select-wrap > .action-select" timeout="30"/>
17+
<element name="dropdownActionItem" type="button" selector="(//div[contains(@class, 'action-select-wrap')]//span[text()='{{action}}'])[1]" timeout="30" parameterized="true"/>
1618
</section>
1719
</sections>

0 commit comments

Comments
 (0)