9 use Magento\Catalog\Test\Page\Product\CatalogProductView;
10 use Magento\Mtf\Client\BrowserInterface;
12 use Magento\Mtf\Fixture\FixtureInterface;
50 CatalogProductView $catalogProductView,
54 $this->productViewPage = $catalogProductView;
68 $this->browser->open($_ENV[
'app_frontend_url'] .
$product->getUrlKey() .
'.html');
70 \PHPUnit\Framework\Assert::assertEquals(
71 self::NOT_FOUND_MESSAGE,
72 $this->productViewPage->getTitleBlock()->getTitle(),
73 'Product ' .
$product->getName() .
' is available on Main Website, but should not.' 88 $_ENV[
'app_frontend_url'] .
'websites/' .
$website->getCode() .
'/' .
$product->getUrlKey() .
'.html' 91 \PHPUnit\Framework\Assert::assertEquals(
93 $this->productViewPage->getViewBlock()->getProductName(),
94 'Product ' .
$product->getName() .
' is not available on ' .
$website->getName() .
' website.' 106 return 'Product on product view page displayed in appropriate Website.';
verifyProductOnMainWebsite(FixtureInterface $product)
verifyProductOnCustomWebsite(FixtureInterface $product)
processAssert(BrowserInterface $browser, CatalogProductView $catalogProductView, FixtureInterface $product)