Skip to content

Commit a3b979f

Browse files
committed
MAGETWO-93830: Automate with MFTF Sort products grid after removing shared catalog
1 parent e9524a3 commit a3b979f

7 files changed

+30
-62
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/AdminCreateApiConfigurableProductActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminCreateApiConfigurableProductActionGroup">
1212
<!-- Create the configurable product based on the data in the /data folder -->
13-
<createData entity="ApiConfigurableProductWithOutCategory" stepKey="createConfigProduct"/>
13+
<createData entity="ApiConfigurableProductWithOutCategory" stepKey="createConfigProduct"/>
1414

15-
<!-- Make the configurable product have two options, that are children of the default attribute set -->
15+
<!-- Create attribute with 2 options to be used in children products -->
1616
<createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/>
1717
<createData entity="productAttributeOption1" stepKey="createConfigProductAttributeOption1">
1818
<requiredEntity createDataKey="createConfigProductAttribute"/>
1919
</createData>
2020
<createData entity="productAttributeOption2" stepKey="createConfigProductAttributeOption2">
2121
<requiredEntity createDataKey="createConfigProductAttribute"/>
2222
</createData>
23-
<createData entity="AddToDefaultSet" stepKey="createConfigAddToAttributeSet">
23+
<createData entity="AddToDefaultSet" stepKey="addAttributeToAttributeSet">
2424
<requiredEntity createDataKey="createConfigProductAttribute"/>
2525
</createData>
2626
<getData entity="ProductAttributeOptionGetter" index="1" stepKey="getConfigAttributeOption1">

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminCustomerGroupResetFilterActionGroup.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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>

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminFilterCustomerGroupByNameActionGroup.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<arguments>
1313
<argument name="customerGroupName" type="string"/>
1414
</arguments>
15-
<click selector="{{AdminCustomerGroupFiltersSection.filterButton}}" stepKey="openFiltersSectionOnCustomerGroupIndexPage"/>
16-
<conditionalClick selector="{{AdminCustomerGroupFiltersSection.clearFiltersButton}}" dependentSelector="{{AdminCustomerGroupFiltersSection.clearFiltersButton}}" visible="true" stepKey="cleanFiltersIfTheySet"/>
17-
<fillField userInput="{{customerGroupName}}" selector="{{AdminCustomerGroupFiltersSection.nameField}}" stepKey="fillNameFieldOnFiltersSection"/>
18-
<click selector="{{AdminCustomerGroupFiltersSection.applyFilters}}" stepKey="clickApplyFiltersButton"/>
15+
<click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="openFiltersSectionOnCustomerGroupIndexPage"/>
16+
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="cleanFiltersIfTheySet"/>
17+
<fillField userInput="{{customerGroupName}}" selector="{{AdminDataGridHeaderSection.filterFieldInput('customer_group_code')}}" stepKey="fillNameFieldOnFiltersSection"/>
18+
<click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickApplyFiltersButton"/>
1919
</actionGroup>
2020
</actionGroups>

app/code/Magento/Customer/Test/Mftf/Section/AdminCustomerGroupFiltersSection.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/code/Magento/Customer/Test/Mftf/Section/AdminCustomerGroupGridActionsSection.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminCustomerGroupGridActionsSection">
12-
<element name="selectButton" type="button" selector="table.data-grid button.action-select" timeout="30"/>
13-
<element name="selectButtonItem" type="text" selector="//ul[@class='action-menu _active']//a[contains(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"/>
1415
</section>
1516
</sections>

app/code/Magento/Customer/Test/Mftf/Section/AdminCustomerGroupMainActionsSection.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)