8 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
9 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew;
10 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
14 use Magento\Mtf\TestCase\Injectable;
15 use Magento\Mtf\TestStep\TestStepFactory;
34 const TEST_TYPE =
'acceptance_test, extended_acceptance_test';
43 private $productIndex;
64 private $testStepFactory;
71 private $configData =
null;
80 CatalogProductIndex $productIndex,
81 CatalogProductNew $productNew,
82 CatalogProductEdit $productEdit,
83 TestStepFactory $testStepFactory
85 $this->productIndex = $productIndex;
86 $this->productNew = $productNew;
87 $this->productEdit = $productEdit;
88 $this->testStepFactory = $testStepFactory;
99 CatalogProductSimple $simpleProductVideo,
106 $this->configData = $configData;
107 $this->testStepFactory->create(
108 SetupConfigurationStep::class,
109 [
'configData' => $this->configData,
'flushCache' =>
true]
113 $this->productIndex->open();
114 $this->productIndex->getGridPageActionBlock()->addProduct(
'configurable');
115 $this->productNew->getProductForm()->fill(
$product);
116 $this->productNew->getFormPageActions()->save(
$product);
119 $sku =
$product->getConfigurableAttributesData()[
'matrix'][$variation][
'sku'];
120 $this->productIndex->open();
121 $this->productIndex->getProductGrid()->searchAndOpen([
'sku' => $sku]);
122 $this->productEdit->getProductForm()->fill($simpleProductVideo);
123 $this->productEdit->getFormPageActions()->save();
test(CatalogProductSimple $simpleProductVideo, ConfigurableProduct $product, AssertProductSaveMessage $assertCreateProducts, $variation, $configData=null)
processAssert(CatalogProductEdit $productPage)
__inject(CatalogProductIndex $productIndex, CatalogProductNew $productNew, CatalogProductEdit $productEdit, TestStepFactory $testStepFactory)