Skip to content

Commit 60b3bf9

Browse files
shashikant.kumarshashikant.kumar
authored andcommitted
AC-4948:- worked on review comment
1 parent 5fbc963 commit 60b3bf9

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminOpenCreateNewWidgetsOfCMSStaticBlockActionGroup.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929
<waitForPageLoad stepKey="waitForAddLayoutTabToLoad"/>
3030
<selectOption selector="{{CmsNewWidgetUpdateLayoutSection.DisplayOn}}" userInput="{{WidgetDisplayOn}}" stepKey="selectDisplay"/>
3131
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskDisappear3" />
32-
<selectOption selector="//input[@id='specific_anchor_categories_0']" userInput="Specific Categories" stepKey="selectSpecificCategoryRadioButton"/>
33-
<click selector="//*[@id='anchor_categories_ids_0']/p/a[1]/img" stepKey="clickCategoryChooserButton"/>
32+
<selectOption selector="{{CmsNewWidgetUpdateLayoutSection.SpecificCategories}}" userInput="Specific Categories" stepKey="selectSpecificCategoryRadioButton"/>
33+
<click selector="{{CmsNewWidgetUpdateLayoutSection.CategoryChooserButton}}" stepKey="clickCategoryChooserButton"/>
3434
<waitForPageLoad stepKey="waitForRootCategoryToLoad"/>
35-
<click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="clickRootCat"/>
35+
<click selector="{{CmsNewWidgetUpdateLayoutSection.RootCat}}" stepKey="clickRootCat"/>
3636
<waitForPageLoad stepKey="waitForRootCategoryToExpand"/>
37-
<click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="clickFirstSubCat"/>
37+
<click selector="{{CmsNewWidgetUpdateLayoutSection.FirstSubCat}}" stepKey="clickFirstSubCat"/>
3838
<waitForPageLoad stepKey="waitForFirstSubCatToExpand"/>
39-
<click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="expandSecondSubCat"/>
39+
<click selector="{{CmsNewWidgetUpdateLayoutSection.SecondSubCat}}" stepKey="expandSecondSubCat"/>
4040
<waitForPageLoad stepKey="waitForSecondSubCatToExpand"/>
41-
<click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="expandThirdFirstSubCat"/>
41+
<click selector="{{CmsNewWidgetUpdateLayoutSection.ThirdSubCat}}" stepKey="expandThirdFirstSubCat"/>
4242
<waitForPageLoad stepKey="waitForThirdSubCatToExpand"/>
43-
<click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="expandFourthSubCat"/>
43+
<click selector="{{CmsNewWidgetUpdateLayoutSection.FourthSubCat}}" stepKey="expandFourthSubCat"/>
4444
<waitForPageLoad stepKey="waitForFourthSubCatToExpand"/>
45-
<click selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']" stepKey="expandFifthSubCat"/>
45+
<click selector="{{CmsNewWidgetUpdateLayoutSection.FifthSubCat}}" stepKey="expandFifthSubCat"/>
4646
<waitForPageLoad stepKey="waitForFifthSubCatToExpand"/>
47-
<grabMultiple selector="//*[@class='x-tree-ec-icon x-tree-elbow-end-minus' or @class='x-tree-ec-icon x-tree-elbow-end']" stepKey="countNestedCategory"/>
47+
<grabMultiple selector="{{CmsNewWidgetUpdateLayoutSection.CountAllNestedCat}}" stepKey="countNestedCategory"/>
4848
<assertCount stepKey="check">
4949
<expectedResult type="int">7</expectedResult>
5050
<actualResult type="variable">countNestedCategory</actualResult>

app/code/Magento/Catalog/Test/Mftf/Test/AdminValidateAllNestedCategoryInWidget.xml renamed to app/code/Magento/Catalog/Test/Mftf/Test/AdminValidateAllNestedCategoryInWidgetTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11-
<test name="AdminValidateAllNestedCategoryInWidget">
11+
<test name="AdminValidateAllNestedCategoryInWidgetTest">
1212
<annotations>
1313
<features value="Catalog"/>
1414
<stories value="All sub cat should shown"/>
1515
<title value="Category Selector limit category upto 5 from the root"/>
1616
<description value="Category Selector limit category more than 5 from the root"/>
1717
<severity value="MAJOR"/>
18-
<testCaseId value="MC-40114"/>
1918
<testCaseId value="AC-4948"/>
2019
</annotations>
2120
<before>

app/code/Magento/Cms/Test/Mftf/Section/TinyMCESection/CmsNewWidgetUpdateLayoutSection.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,14 @@
1212
<element name="DisplayOn" type="button" selector="#widget_instance\[0\]\[page_group\]"/>
1313
<element name="Container" type="button" selector="#all_pages_0 > table > tbody > tr > td:nth-child(1) > div > div > select"/>
1414
<element name="Template" type="button" selector="#all_pages_0 > table > tbody > tr > td:nth-child(2) > div > div > select"/>
15+
<element name="SpecificCategories" type="button" selector="//input[@id='specific_anchor_categories_0']"/>
16+
<element name="CategoryChooserButton" type="button" selector="//*[@id='anchor_categories_ids_0']/p/a[1]/img"/>
17+
<element name="RootCat" type="button" selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']"/>
18+
<element name="FirstSubCat" type="button" selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']"/>
19+
<element name="SecondSubCat" type="button" selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']"/>
20+
<element name="ThirdSubCat" type="button" selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']"/>
21+
<element name="FourthSubCat" type="button" selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']"/>
22+
<element name="FifthSubCat" type="button" selector="//img[@class='x-tree-ec-icon x-tree-elbow-end-plus']"/>
23+
<element name="CountAllNestedCat" type="button" selector="//*[@class='x-tree-ec-icon x-tree-elbow-end-minus' or @class='x-tree-ec-icon x-tree-elbow-end']"/>
1524
</section>
1625
</sections>

0 commit comments

Comments
 (0)