Skip to content

Commit 14664e3

Browse files
MC-39756: An image added to the Content via Page Builder is not counted in "Used In" counter.
1 parent 64ab709 commit 14664e3

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

app/code/Magento/MediaGalleryRenditions/etc/media_content.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<search>
1010
<patterns>
1111
<pattern name="media_gallery_renditions">/{{media url=(?:"|&amp;quot;)(?:.renditions)?(.*?)(?:"|&amp;quot;)}}/</pattern>
12-
<pattern name="media_gallery">/{{media url="?((?!.*.renditions).*?)"?}}/</pattern>
12+
<pattern name="media_gallery">/{{media url="?(?:.*?\.renditions\/)(.*?)"?}}/</pattern>
1313
<pattern name="wysiwyg">/src=".*\/media\/(?:.renditions\/)*(.*?)"/</pattern>
1414
<pattern name="catalog_image">/^\/?media\/(?:.renditions\/)?(.*)/</pattern>
1515
<pattern name="catalog_image_with_pub">/^\/pub\/?media\/(?:.renditions\/)?(.*)/</pattern>
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="AssertAdminEnhancedMediaGalleryUsedInSectionDisplayedActionGroup">
12+
<annotations>
13+
<description>Assert used in section is displayed in view details.</description>
14+
</annotations>
15+
16+
<seeElement selector="{{AdminEnhancedMediaGalleryViewDetailsSection.usedIn}}" stepKey="assertUsedInPresent"/>
17+
</actionGroup>
18+
</actionGroups>

0 commit comments

Comments
 (0)