Skip to content

Commit d0f5dec

Browse files
committed
MC-257: [Visual Merchandiser] Admin should be able to move assigned product position in the category by editing Position field in grid mode - move in the middle within same page
- added mftf tests
1 parent 62052e1 commit d0f5dec

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/StorefrontCategoryMainSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
<element name="productPrice" type="text" selector="div.price-box.price-final_price"/>
2626
<element name="categoryImage" type="text" selector=".category-image"/>
2727
<element name="emptyProductMessage" type="block" selector=".message.info.empty>div"/>
28+
<element name="lineProductName" type="text" selector=".products.list.items.product-items li:nth-of-type({{line}}) .product-item-link" timeout="30" parameterized="true"/>
2829
</section>
2930
</sections>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
11+
<section name="StorefrontCategoryTopToolbarSection">
12+
<element name="gridMode" type="button" selector=".//*[@class='toolbar toolbar-products'][1]//*[@id='mode-grid']" timeout="30"/>
13+
<element name="listMode" type="button" selector=".//*[@class='toolbar toolbar-products'][1]//*[@id='mode-list']" timeout="30"/>
14+
<element name="sortByDropdown" type="select" selector=".//*[@class='toolbar toolbar-products'][1]//*[@id='sorter']" timeout="30"/>
15+
</section>
16+
</sections>

0 commit comments

Comments
 (0)