9 use Magento\Cms\Test\Page\CmsIndex;
10 use Magento\Mtf\Fixture\InjectableFixture;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 use Magento\Catalog\Test\Page\Category\CatalogCategoryView;
29 CatalogCategoryView $catalogCategoryView,
33 $cmsIndex->getTopmenu()->selectCategoryByName(
$product->getCategoryIds()[0]);
34 $src = $catalogCategoryView->getListProductBlock()->getProductItem(
$product)->getBaseImageSource();
35 \PHPUnit\Framework\Assert::assertFalse(
36 strpos($src,
'/placeholder/') !==
false,
37 'Video preview image is not displayed on category view when it should.' 48 return 'Video preview images is displayed on category view.';
processAssert(CmsIndex $cmsIndex, CatalogCategoryView $catalogCategoryView, InjectableFixture $product)