Skip to content

Commit 912bec6

Browse files
author
Viktor Kopin
committed
magento#1806 create config action group
1 parent e2e056f commit 912bec6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

AdobeStockImageAdminUi/Test/Mftf/Test/AdminAdobeStockInsertRenditionImageFromGalleryFileSizeTest.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
<createData entity="SimpleSubCategory" stepKey="category"/>
2424
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2525
<!-- Prepare configuration -->
26-
<magentoCLI command="config:set system/media_gallery_renditions/width 50" stepKey="prepareWidth"/>
27-
<magentoCLI command="config:set system/media_gallery_renditions/height 50" stepKey="prepareHeight"/>
26+
<actionGroup ref="AdminRenditionsSetImageSizeActionGroup" stepKey="prepareRenditionsConfig">
27+
<argument name="height" value="50"/>
28+
<argument name="width" value="50"/>
29+
</actionGroup>
2830
</before>
2931
<after>
3032
<!-- Restore configuration -->
31-
<magentoCLI command="config:set system/media_gallery_renditions/width 1000" stepKey="restoreWidth"/>
32-
<magentoCLI command="config:set system/media_gallery_renditions/height 1000" stepKey="restoreHeight"/>
33+
<actionGroup ref="AdminRenditionsSetImageSizeActionGroup" stepKey="restoreRenditionsConfig"/>
3334
<!-- Delete uploaded image -->
3435
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGalleryFromWysiwyg"/>
3536
<actionGroup ref="AdminEnhancedMediaGalleryImageDeleteActionGroup" stepKey="removeSavedPreview"/>

0 commit comments

Comments
 (0)