9 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
10 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew;
11 use Magento\Mtf\ObjectManager;
12 use Magento\Mtf\TestCase\Injectable;
35 const TEST_TYPE =
'acceptance_test, extended_acceptance_test';
86 $this->objectManager->create(
87 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
88 [
'configData' => $this->configData]
93 $this->productGrid->open();
96 $this->productGrid->getGridPageActionBlock()->addProduct(
'simple');
101 $productForm = $this->newProductPage->getProductForm();
106 $productForm->openSection(
'images-and-videos')->getSection(
'images-and-videos')->deleteFirstVideo();
109 $this->newProductPage->getFormPageActions()->save();
121 if ($this->configData) {
122 $this->objectManager->create(
123 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
124 [
'configData' => $this->configData,
'rollback' =>
true]
test(CatalogProductSimple $product, $configData=null)
__inject(CatalogProductIndex $productGrid, CatalogProductNew $newProductPage)