Skip to content

Commit 4cea0e8

Browse files
Manjusha.SManjusha.S
authored andcommitted
Merge branch 'ACQE-4078' into functional-testing-automation
2 parents ef5320f + ad94dd3 commit 4cea0e8

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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="AdminAddAllProductsToCategoryActionGroup">
12+
<annotations>
13+
<description>Admin Add All Catalog Multiple Product to Category</description>
14+
</annotations>
15+
16+
<scrollTo selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" x="0" y="-80" stepKey="scrollToProductInCategory"/>
17+
<click selector="{{AdminCategoryBasicFieldSection.productsInCategory}}" stepKey="clickOnProductInCategory"/>
18+
<click selector="{{AdminCategoryProductsSection.addProducts}}" stepKey="clickOnAddProducts"/>
19+
<click selector="{{AdminCategoryProductsSection.filtersButton}}" stepKey="clickOnFiltersButton"/>
20+
<click selector="{{AdminCategoryProductsSection.filtersButton}}" stepKey="clickOnFiltersButtonAgain"/>
21+
<click selector="{{AdminCategoryProductsSection.saveAndClose}}" stepKey="clickSaveAndCloseButton"/>
22+
<click selector="{{AdminCategoryProductsSection.addProducts}}" stepKey="clickOnAddProductsAgain"/>
23+
<click selector="{{AdminCategoryProductsSection.downArrow}}" stepKey="clickOnDownArrow"/>
24+
<click selector="{{AdminCategoryProductsSection.selectAllOnThisPage}}" stepKey="selectAllProducts"/>
25+
<click selector="{{AdminCategoryProductsSection.saveAndClose}}" stepKey="clickSaveAndCloseButtonAgain"/>
26+
<waitForPageLoad time="20" stepKey="waitForPageLoad1"/>
27+
28+
</actionGroup>
29+
</actionGroups>

app/code/Magento/Catalog/Test/Mftf/Section/AdminCategoryProductsSection.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,13 @@
1111
<section name="AdminCategoryProductsSection">
1212
<element name="sectionHeader" type="button" selector="div[data-index='assign_products'] .fieldset-wrapper-title" timeout="30"/>
1313
<element name="sectionBody" type="button" selector="div[data-index='assign_products'] .admin__fieldset-wrapper-content" timeout="30"/>
14+
<element name="addProducts" type="button" selector="//button[@class='action-default scalable secondary add-products']"/>
15+
<element name="filtersButton" type="button" selector="//div[@class='data-grid-filters-actions-wrap']//button"/>
16+
<element name="clearAllButton" type="button" selector="//button[contains(text(),'Clear all')]"/>
17+
<element name="downArrow" type="button" selector="//button[@class='action-multicheck-toggle']"/>
18+
<element name="selectAllOnThisPage" type="select" selector="//span[contains(text(),'Select All on This Page')]"/>
19+
<element name="saveAndClose" type="button" selector="//button[@name='add_products_save_button']"/>
20+
<element name="subCategoryProductCount" type="text" selector="//div[@class='tree-holder']//span[contains(text(),'SimpleSubCategory') and contains(text(),'({{productCount}})')]" parameterized="true"/>
21+
<element name="defaultCategoryProductCount" type="text" selector="//div[@class='tree-holder']//span[contains(text(),'Default Category') and contains(text(),'({{productCount}})')]" parameterized="true"/>
1422
</section>
1523
</sections>

0 commit comments

Comments
 (0)