Skip to content

Commit 3a8b44a

Browse files
committed
Merge branch 'ACP2E-1234' of https://github.com/magento-l3/magento2-page-builder into PR-L3-2023-01-31
2 parents af521aa + bff9927 commit 3a8b44a

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminSimpleProductSetEditMetaDescriptionContentTest">
11+
<annotations>
12+
<features value="Catalog"/>
13+
<stories value="Create/edit simple product"/>
14+
<title value="Admin should be able to set/edit product Content when editing a simple product. Meta description should be autogenerated, based on updated mask with Page Builder installed."/>
15+
<description value="Admin should be able to set/edit product Content when editing a simple product"/>
16+
<severity value="MINOR"/>
17+
<testCaseId value="AC-6971"/>
18+
<group value="Catalog"/>
19+
<group value="WYSIWYGDisabled"/>
20+
</annotations>
21+
<actionGroup ref="AssertMetaDescriptionInProductEditFormActionGroup" stepKey="seeProductMetaDescription">
22+
<argument name="productMetaDescription" value="simple"/>
23+
</actionGroup>
24+
</test>
25+
</tests>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="ProductMetaDescriptionMaskTest">
11+
<annotations>
12+
<features value="PageBuilder"/>
13+
<stories value="Store Configuration - Check product meta description mask"/>
14+
<title value="Check product meta description mask"/>
15+
<description value="When Page Builder is installed, product meta description mask should be set to {{name}}"/>
16+
<severity value="MINOR"/>
17+
<testCaseId value="AC-7086"/>
18+
<group value="pagebuilder"/>
19+
<group value="pagebuilder-store-configuration"/>
20+
<group value="pagebuilder-enable"/>
21+
</annotations>
22+
<before>
23+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
24+
</before>
25+
<after>
26+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
27+
</after>
28+
<amOnPage url="{{CatalogConfigPage.url}}" stepKey="navigateToConfigurationPage" />
29+
<waitForPageLoad stepKey="waitForPageLoad"/>
30+
<seeInField selector="{{AdminCatalogProductFieldsAutoGenerationSection.metaDescriptionInput}}" userInput="{{name}}" stepKey="seeProductMetaDescription"/>
31+
</test>
32+
</tests>

app/code/Magento/PageBuilder/etc/config.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8-
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
910
<default>
1011
<general>
1112
<validator_data>
@@ -38,5 +39,10 @@
3839
</allowed_resources>
3940
</media_storage_configuration>
4041
</system>
42+
<catalog>
43+
<fields_masks>
44+
<meta_description>{{name}}</meta_description>
45+
</fields_masks>
46+
</catalog>
4147
</default>
4248
</config>

0 commit comments

Comments
 (0)