10 use Magento\Catalog\Test\Page\Product\CatalogProductView;
12 use Magento\Mtf\Client\BrowserInterface;
13 use Magento\Mtf\Constraint\AbstractConstraint;
29 public function processAssert(
30 CatalogProductView $catalogProductView,
31 Review $reviewInitial,
32 BrowserInterface $browser
35 $product = $reviewInitial->getDataFieldConfig(
'entity_id')[
'source']->getEntity();
36 $browser->open($_ENV[
'app_frontend_url'] .
$product->getUrlKey() .
'.html');
38 $reviewBlock = $catalogProductView->getCustomerReviewBlock();
39 $catalogProductView->getViewBlock()->selectTab(
'Reviews');
40 \PHPUnit\Framework\Assert::assertFalse(
41 $reviewBlock->isVisibleReviewItem(),
42 'Error, product review is displayed.' 53 return 'Review is not available on the product page.';