Skip to content

Commit 5289d3d

Browse files
Chhandak.Baruadevarul
authored andcommitted
ACP2E-1377: HTML tags removed in Page Builder editor after Product Import
1 parent a6f59cc commit 5289d3d

File tree

1 file changed

+4
-4
lines changed
  • dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Export

1 file changed

+4
-4
lines changed

dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Export/ProductTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,16 @@ public function testExport(): void
142142
/**
143143
* Verify successful export of product
144144
*
145-
* @magentoDataFixture Magento/CatalogImportExport/_files/product_export_data_with_html_tag.php
145+
* @magentoDataFixture Magento/CatalogImportExport/_files/product_export_data_special_chars.php
146146
* @magentoDbIsolation enabled
147147
*
148148
* @return void
149149
*/
150150
public function testExportBehaviour(): void
151151
{
152+
$product = $this->productRepository->get('simple "1"');
153+
$product->setDescription('Description with <h2>this is test page</h2>');
154+
$product->save();
152155
$this->model->setWriter(
153156
$this->objectManager->create(
154157
\Magento\ImportExport\Model\Export\Adapter\Csv::class
@@ -157,9 +160,6 @@ public function testExportBehaviour(): void
157160
$exportData = $this->model->export();
158161
$this->assertStringContainsString('New Product', $exportData);
159162
$this->assertStringContainsString('Description with <h2>this is test page</h2>', $exportData);
160-
161-
$occurrencesCount = substr_count($exportData, 'Description with <h2>this is test page</h2>');
162-
$this->assertEquals(1, $occurrencesCount);
163163
}
164164

165165
/**

0 commit comments

Comments
 (0)