Skip to content

Commit b9a5f4d

Browse files
committed
MAGETWO-92931: HTML entities in product name do not display properly in breadcrumb
- added annotation
1 parent f172fb8 commit b9a5f4d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,11 @@
233233
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
234234
</entity>
235235
<entity name="productWithHTMLEntityTwo" type="product">
236-
<data key="sku" unique="suffix">SimpleTwo&#174;Product</data>
236+
<data key="sku" unique="suffix">SimpleTwo&#38657;&#20135;&#21697;&lt;カネボウPro</data>
237237
<data key="type_id">simple</data>
238238
<data key="attribute_set_id">4</data>
239239
<data key="visibility">4</data>
240-
<data key="name" unique="suffix">SimpleTwo&#174;Product</data>
240+
<data key="name" unique="suffix">SimpleTwo&#38657;&#20135;&#21697;&lt;カネボウPro</data>
241241
<data key="price">50.00</data>
242242
<data key="urlKey" unique="suffix">testurlkey</data>
243243
<data key="status">1</data>

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontProductNameWithDoubleQuote.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<description value="Product with html entities in the name should appear correctly on the PDP breadcrumbs on storefront"/>
6969
<severity value="CRITICAL"/>
7070
<group value="product"/>
71-
<testCaseId value=""/>
71+
<testCaseId value="MAGETWO-93794"/>
7272
</annotations>
7373
<before>
7474
<createData entity="_defaultCategory" stepKey="createCategoryOne"/>
@@ -92,7 +92,6 @@
9292
<see selector="{{StorefrontCategoryProductSection.ProductTitleByName(productWithHTMLEntityTwo.name)}}" userInput="{{productWithHTMLEntityTwo.name}}" stepKey="seeCorrectNameProd2CategoryPage"/>
9393

9494
<!--Open product display page-->
95-
<!--<click selector="{{StorefrontCategoryProductSection.ProductTitleByNumber('1')}}" stepKey="checkTitle"/>-->
9695
<click selector="{{StorefrontCategoryProductSection.ProductTitleByName(productWithHTMLEntityOne.name)}}" stepKey="clickProductToGoProductPage"/>
9796
<waitForPageLoad stepKey="waitForProductDisplayPageLoad2"/>
9897

@@ -103,7 +102,7 @@
103102
<!--Veriy the breadcrumbs on Product Display page-->
104103
<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="Home" stepKey="seeHomePageInBreadcrumbs1"/>
105104
<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$createCategoryOne.name$$" stepKey="seeCorrectBreadCrumbCategory"/>
106-
<!--<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="{{productWithHTMLEntityOne.name}}" stepKey="seeCorrectBreadCrumbProduct"/>-->
105+
<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$productOne.name$$" stepKey="seeCorrectBreadCrumbProduct"/>
107106

108107
<click selector="{{StorefrontNavigationSection.topCategory($$createCategoryOne.name$$)}}" stepKey="goBackToCategoryPage"/>
109108
<waitForPageLoad stepKey="waitforCategoryPageToLoad2"/>
@@ -116,8 +115,7 @@
116115
<!--Veriy the breadcrumbs on Product Display page-->
117116
<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="Home" stepKey="seeHomePageInBreadcrumbs2"/>
118117
<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$createCategoryOne.name$$" stepKey="seeCorrectBreadCrumbCategory2"/>
119-
<!--<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="{{productWithHTMLEntityTwo.name}}" stepKey="seeCorrectBreadCrumbProduct2"/>-->
120-
118+
<see selector="{{StorefrontNavigationSection.breadcrumbs}}" userInput="$$productTwo.name$$" stepKey="seeCorrectBreadCrumbProduct2"/>
121119

122120
</test>
123121
</tests>

0 commit comments

Comments
 (0)