Skip to content

Commit f3ea93f

Browse files
author
joweecaquicla
committed
magento/adobe-stock-integration#1794: [MFTF] Unskip AdminMediaGalleryCatalogUiVerifyUsedInLinkCategoryGridTest - modified actiongroup, test and added new category data entity
1 parent 86e9656 commit f3ea93f

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

app/code/Magento/MediaGalleryCatalogUi/Test/Mftf/ActionGroup/AssertAdminCategoryGridPageProductsInMenuEnabledColumnsActionGroup.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
<description>Assert category grid page products, in menu, and enabled column values for a specific category</description>
1313
</annotations>
1414

15+
<grabTextFrom selector="{{AdminMediaGalleryCatalogUiCategoryGridSection.columnValue('Display Mode')}}" stepKey="grabDisplayModeColumnValue"/>
16+
<assertEquals stepKey="assertDisplayModeColumn">
17+
<expectedResult type="string">PRODUCTS</expectedResult>
18+
<actualResult type="variable">grabDisplayModeColumnValue</actualResult>
19+
</assertEquals>
1520
<grabTextFrom selector="{{AdminMediaGalleryCatalogUiCategoryGridSection.columnValue('Products')}}" stepKey="grabProductsColumnValue"/>
1621
<assertEquals stepKey="assertProductsColumn">
1722
<expectedResult type="string">0</expectedResult>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="TestSubCategory" type="category">
12+
<data key="name">TestSubCategory</data>
13+
<data key="name_lwr">testsubcategory</data>
14+
<data key="is_active">true</data>
15+
<data key="include_in_menu">true</data>
16+
</entity>
17+
</entities>

app/code/Magento/MediaGalleryCatalogUi/Test/Mftf/Test/AdminMediaGalleryCatalogUiVerifyUsedInLinkCategoryGridTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<group value="media_gallery_ui"/>
2020
</annotations>
2121
<before>
22-
<createData entity="SimpleSubCategory" stepKey="category"/>
22+
<createData entity="TestSubCategory" stepKey="category"/>
2323
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2424
</before>
2525
<after>

0 commit comments

Comments
 (0)