Skip to content

Commit 45fd39b

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-52991' into troll_p2
2 parents 11ead52 + 6752f7e commit 45fd39b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedCatalogPage.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ public function processAssert(
4949
$categoryName = $product->getCategoryIds()[0];
5050
$cmsIndexPage->getTopmenu()->selectCategoryByName($categoryName);
5151
$priceBlock = $catalogCategoryViewPage->getListProductBlock()->getProductItem($product)->getPriceBlock();
52+
\PHPUnit_Framework_Assert::assertTrue(
53+
$priceBlock->isVisible(),
54+
'Price block is not displayed for product ' . $product->getName()
55+
);
5256
$actualPrice['regular'] = (float)$priceBlock->getOldPrice();
5357
$actualPrice['special'] = (float)$priceBlock->getSpecialPrice();
5458
$actualPrice['discount_amount'] = $actualPrice['regular'] - $actualPrice['special'];

0 commit comments

Comments
 (0)