9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Catalog\Test\Page\Product\CatalogProductView;
37 $catalogProductView->getViewBlock()->selectTab(
'Reviews');
39 \PHPUnit\Framework\Assert::assertFalse(
40 $catalogProductView->getCustomerReviewBlock()->isVisibleReviewItem(),
41 'No reviews below the form required.' 44 \PHPUnit\Framework\Assert::assertEquals(
45 self::NO_REVIEW_LINK_TEXT,
46 trim($catalogProductView->getReviewSummary()->getAddReviewLink()->getText()),
47 sprintf(
'"%s" link is not available', self::NO_REVIEW_LINK_TEXT)
58 return 'Product do not have a review on product page.';
const NO_REVIEW_LINK_TEXT
processAssert(CatalogProductView $catalogProductView)