File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
app/code/Magento/Customer/Test/Mftf Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
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 =" ../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminDeleteCustomerGroupActionGroup" >
12
+ <arguments >
13
+ <argument name =" customerGroupName" type =" string" />
14
+ </arguments >
15
+ <click selector =" {{AdminCustomerGroupGridActionsSection.selectButton('customerGroupName')}}" stepKey =" clickSelectButton" />
16
+ <click selector =" {{AdminCustomerGroupGridActionsSection.deleteAction('customerGroupName')}}" stepKey =" clickOnDeleteItem" />
17
+ <click selector =" {{AdminConfirmationModalSection.ok}}" stepKey =" confirmDeleteCustomerGroup" />
18
+ <seeElement selector =" {{AdminMessagesSection.success}}" stepKey =" seeSuccessMessage" />
19
+ </actionGroup >
20
+ </actionGroups >
Original file line number Diff line number Diff line change 9
9
<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" ../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd" >
11
11
<section name =" AdminCustomerGroupGridActionsSection" >
12
- <element name =" selectButton" type =" button" selector =" //div[text()='{{NAME_FIELD}}']/parent::td//following-sibling::td[@class='data-grid-actions-cell']//button[text()='Select']" timeout =" 30" parameterized =" true" />
13
- <element name =" actionsMenuButton" type =" text" selector =" //div[text()='{{NAME_FIELD}}']/parent::td//following-sibling::td[@class='data-grid-actions-cell']//a[text()='{{selectItem}}']" timeout =" 30" parameterized =" true" />
12
+ <element name =" selectButton" type =" button" selector =" //div[text()='{{groupName}}']/parent::td//following-sibling::td[@class='data-grid-actions-cell']//button[text()='Select']" timeout =" 30" parameterized =" true" />
13
+ <element name =" deleteAction" type =" button" selector =" //div[text()='{{groupName}}']/parent::td//following-sibling::td[@class='data-grid-actions-cell']//a[text()='Delete']" timeout =" 30" parameterized =" true" />
14
+ <element name =" actionsMenuButton" type =" text" selector =" //div[text()='{{groupName}}']/parent::td//following-sibling::td[@class='data-grid-actions-cell']//a[text()='{{selectItem}}']" timeout =" 30" parameterized =" true" />
14
15
</section >
15
16
</sections >
You can’t perform that action at this time.
0 commit comments