Skip to content

Commit 751b858

Browse files
author
joweecaquicla
committed
magento/adobe-stock-integration#1827: Improve AdminMediaGalleryUploadCategoryImageTest - applied request changes
1 parent 79ddf9a commit 751b858

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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="AdminMediaGalleryExpandFolderActionGroup">
12+
<arguments>
13+
<argument name="fieldId" type="string"/>
14+
</arguments>
15+
<conditionalClick selector="{{AdminMediaGalleryFolderSection.folderArrow(fieldId)}}"
16+
dependentSelector="{{AdminMediaGalleryFolderSection.checkIfFolderArrowExpand(fieldId)}}" stepKey="clickArrowIfClosed" visible="true"/>
17+
</actionGroup>
18+
</actionGroups>

app/code/Magento/MediaGalleryUi/Test/Mftf/Test/AdminMediaGalleryUploadCategoryImageTest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
<actionGroup ref="AdminSaveCategoryFormActionGroup" stepKey="saveCategoryForm"/>
3838
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGalleryFromImageUploader"/>
3939
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilter"/>
40-
<conditionalClick selector="{{AdminMediaGalleryFolderSection.folderArrow(catalog)}}"
41-
dependentSelector="{{AdminMediaGalleryFolderSection.checkIfFolderArrowExpand(catalog)}}" stepKey="clickArrowIfClosed" visible="true"/>
40+
<actionGroup ref="AdminMediaGalleryExpandFolderActionGroup" stepKey="expandCatalogFolder">
41+
<argument name="fieldId" value="catalog"/>
42+
</actionGroup>
4243
<actionGroup ref="AdminMediaGalleryFolderSelectActionGroup" stepKey="selectCategoryFolder">
4344
<argument name="name" value="category"/>
4445
</actionGroup>

0 commit comments

Comments
 (0)