Skip to content

Commit c5d1d62

Browse files
MAGETWO-96416: Clicking on a Root Category causes all other Root Categories to be expanded to the top-level categories
1 parent 17505b1 commit c5d1d62

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
<element name="categoryInTreeUnderRoot" type="text" selector="//li/ul/li[@class='x-tree-node']/div/a/span[contains(text(), '{{name}}')]" parameterized="true"/>
1717
<element name="lastCreatedCategory" type="block" selector=".x-tree-root-ct li li:last-child" />
1818
<element name="treeContainer" type="block" selector=".tree-holder" />
19+
<element name="expandRootCategory" type="text" selector="img.x-tree-elbow-end-plus"/>
1920
</section>
2021
</sections>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
<element name="PageSize" type="input" selector="input[name='parameters[page_size]']"/>
110110
<element name="ProductAttribute" type="multiselect" selector="select[name='parameters[show_attributes][]']" />
111111
<element name="ButtonToShow" type="multiselect" selector="select[name='parameters[show_buttons][]']"/>
112-
<element name="ExpandRootCategory" type="text" selector="img.x-tree-elbow-end-plus"/>
113112
<!--Compare on Storefront-->
114113
<element name="ProductName" type="text" selector=".product.name.product-item-name" />
115114
<element name="CompareBtn" type="button" selector=".action.tocompare"/>

app/code/Magento/Cms/Test/Mftf/Test/AdminAddWidgetToWYSIWYGWithCatalogCategoryLinkTypeTest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@
4646
<selectOption selector="{{WidgetSection.WidgetTemplate}}" userInput="Category Link Block Template" stepKey="selectTemplate" />
4747
<click selector="{{WidgetSection.BtnChooser}}" stepKey="clickSelectCategoryBtn" />
4848
<waitForLoadingMaskToDisappear stepKey="wait3"/>
49-
<click selector="{{WidgetSection.ExpandRootCategory}}" stepKey="expandRootCategory" />
50-
<click userInput="$$createPreReqCategory.name$$" stepKey="selectPreCreateCategory" />
49+
<click selector="{{AdminCategorySidebarTreeSection.expandRootCategory}}" stepKey="expandRootCategory" />
50+
<waitForElementVisible selector="{{WidgetSection.PreCreateCategory('$$createPreReqCategory.name$$')}}" stepKey="expandWait" />
51+
<click selector="{{WidgetSection.PreCreateCategory('$$createPreReqCategory.name$$')}}" stepKey="selectPreCreateCategory" />
5152
<waitForElementNotVisible selector="{{WidgetSection.SelectCategoryTitle}}" stepKey="waitForSlideoutCloses1" />
5253
<click selector="{{WidgetSection.InsertWidget}}" stepKey="clickInsertWidget" />
5354
<waitForElementNotVisible selector="{{WidgetSection.InsertWidgetTitle}}" stepKey="waitForSlideOutCloses2" />

app/code/Magento/Cms/Test/Mftf/Test/AdminAddWidgetToWYSIWYGWithCatalogProductLinkTypeTest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
<selectOption selector="{{WidgetSection.WidgetTemplate}}" userInput="Product Link Block Template" stepKey="selectTemplate" />
5151
<click selector="{{WidgetSection.BtnChooser}}" stepKey="clickSelectPageBtn" />
5252
<waitForLoadingMaskToDisappear stepKey="wait4"/>
53-
<click selector="{{WidgetSection.ExpandRootCategory}}" stepKey="expandRootCategory" />
53+
<click selector="{{AdminCategorySidebarTreeSection.expandRootCategory}}" stepKey="expandRootCategory" />
54+
<waitForElementVisible selector="{{WidgetSection.PreCreateCategory('$$createPreReqCategory.name$$')}}" stepKey="expandWait" />
5455
<click selector="{{WidgetSection.PreCreateCategory('$$createPreReqCategory.name$$')}}" stepKey="selectPreCategory" />
5556
<waitForLoadingMaskToDisappear stepKey="waitLoadingMask" />
5657
<click selector="{{WidgetSection.PreCreateProduct('$$createPreReqProduct.name$$')}}" stepKey="selectPreProduct" />

0 commit comments

Comments
 (0)