Skip to content

Commit 76ff6db

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-900 Description tab content looks mess-up while page loading on PDP
1 parent e3eb229 commit 76ff6db

File tree

1 file changed

+19
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Product

1 file changed

+19
-0
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Product/ViewTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,23 @@ private function updateProductVisibility(string $sku, int $visibility): ProductI
428428

429429
return $this->productRepository->save($product);
430430
}
431+
432+
/**
433+
* Test product details block as active on load
434+
*
435+
* @magentoDataFixture Magento/Catalog/_files/product_simple_without_custom_options.php
436+
* @return void
437+
*/
438+
public function testProductDetailsBlock(): void
439+
{
440+
$product = $this->productRepository->get('simple-2');
441+
$this->dispatch(sprintf('catalog/product/view/id/%s/', $product->getId()));
442+
$content = $this->getResponse()->getContent();
443+
444+
$this->assertStringContainsString(
445+
'<div class="data item title active"
446+
data-role="collapsible" id="tab-label-description">',
447+
$content
448+
);
449+
}
431450
}

0 commit comments

Comments
 (0)