|
| 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="AdminUpdateCustomerGroupByEmailActionGroup"> |
| 12 | + <arguments> |
| 13 | + <argument name="emailAddress"/> |
| 14 | + <argument name="customerGroup" type="string"/> |
| 15 | + </arguments> |
| 16 | + |
| 17 | + <amOnPage url="{{AdminCustomerPage.url}}" stepKey="goToCustomerPage1"/> |
| 18 | + <waitForPageLoad stepKey="waitForPageLoad01"/> |
| 19 | + |
| 20 | + <!-- Start of Action Group: searchAdminDataGridByKeyword --> |
| 21 | + <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters1"/> |
| 22 | + <fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="{{emailAddress}}" stepKey="fillKeywordSearchField1"/> |
| 23 | + <click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch1"/> |
| 24 | + <!-- End of Action Group: searchAdminDataGridByKeyword --> |
| 25 | + |
| 26 | + <click selector="{{AdminGridRow.editByValue($customer.customer[email]$)}}" stepKey="clickOnCustomer1"/> |
| 27 | + <waitForPageLoad stepKey="waitForPageLoad02"/> |
| 28 | + |
| 29 | + <conditionalClick selector="#tab_customer" dependentSelector="#tab_customer" visible="true" stepKey="clickOnAccountInformation1"/> |
| 30 | + <waitForPageLoad stepKey="waitForPageLoad03"/> |
| 31 | + |
| 32 | + <click selector=".admin__control-select[name='customer[group_id]']" stepKey="clickOnCustomerGroup1"/> |
| 33 | + <selectOption selector=".admin__control-select[name='customer[group_id]']" userInput="{{customerGroup}}" stepKey="selectCustomerGroup1"/> |
| 34 | + |
| 35 | + <click selector="#save" stepKey="clickOnSave1"/> |
| 36 | + <waitForPageLoad stepKey="waitForPageLoad04"/> |
| 37 | + </actionGroup> |
| 38 | +</actionGroups> |
0 commit comments