9 use Magento\Catalog\Test\Page\Product\CatalogProductView;
10 use Magento\Mtf\Constraint\AbstractConstraint;
11 use Magento\Mtf\Client\BrowserInterface;
27 CatalogProductView $catalogProductView,
28 BrowserInterface $browser,
31 foreach ($entities as
$entity) {
32 $browser->open($_ENV[
'app_frontend_url'] .
$entity->getUrlKey() .
'.html');
33 \PHPUnit\Framework\Assert::assertEquals(
34 $catalogProductView->getViewBlock()->getProductName(),
36 "Can't find product in store front" 48 return 'Products are present on storefront.';
processAssert(CatalogProductView $catalogProductView, BrowserInterface $browser, array $entities)