9 use Magento\Mtf\Fixture\InjectableFixture;
11 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
12 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
29 CatalogProductIndex $productGrid,
30 CatalogProductEdit $editProductPage,
35 $productGrid->getProductGrid()->searchAndOpen([
'sku' =>
$product->getSku()]);
37 $editProductPage->getProductForm()->openSection(
'images-and-videos');
38 $imagesTab = $editProductPage->getProductForm()->getSection(
'images-and-videos');
39 $result = $imagesTab->clickFirstVideo()->getVideoDialog()->validate(
$video);
41 \PHPUnit\Framework\Assert::assertTrue(
43 'Video data received from external service is not correct.' 54 return 'Video data received from external service is correct.';
processAssert(CatalogProductIndex $productGrid, CatalogProductEdit $editProductPage, InjectableFixture $product, array $video)