/
SetGroupCustomerActionGroup.xml
26 lines (24 loc) · 1.25 KB
/
SetGroupCustomerActionGroup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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="SetCustomerGroupForSelectedCustomersViaGrid">
<annotations>
<description>Clicks on the 'Actions' dropdown menu. Clicks on 'Assign a Customer Group'. Clicks on 'Ok'.</description>
</annotations>
<arguments>
<argument name="groupName" type="string"/>
</arguments>
<click selector="{{CustomersPageSection.actions}}" stepKey="clickActions"/>
<click selector="{{CustomersPageSection.actionItem('Assign a Customer Group')}}" stepKey="clickAssignAction"/>
<executeJS function="document.getElementsByClassName('action-menu _active')[0].scrollBy(0, 10000)" stepKey="scrollToGroup"/>
<click selector="{{CustomersPageSection.assignGroup(groupName)}}" stepKey="selectGroup"/>
<waitForPageLoad stepKey="waitAfterSelectingGroup"/>
<click selector="{{AdminConfirmationModalSection.ok}}" stepKey="acceptModal"/>
</actionGroup>
</actionGroups>