Skip to content

Commit 78c22fd

Browse files
author
bshevchenko
committed
MAGETWO-94838: Automate with MFTF Ability to configure Advanced Prices from Shared Catalog Page for different type of products
1 parent f58eb63 commit 78c22fd

7 files changed

+8
-62
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
<!-- Create the configurable product based on the data in the /data folder -->
1313
<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.

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/Page/AdminCustomerGroupsIndexPage.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/PageObject.xsd">
1111
<page name="AdminCustomerGroupsIndexPage" url="/customer/group/" area="admin" module="Magento_Customer">
1212
<section name="AdminCustomerGroupGridActionsSection"/>
13-
<section name="AdminCustomerGroupFiltersSection"/>
1413
</page>
1514
</pages>

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/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()='{{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"/>
1414
</section>
1515
</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)