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;
33 const TEST_TYPE =
'acceptance_test, extended_acceptance_test';
84 $this->objectManager->create(
85 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
86 [
'configData' => $this->configData]
91 $this->productGrid->open();
94 $this->productGrid->getGridPageActionBlock()->addProduct(
'simple');
99 $this->newProductPage->getProductForm()->fill(
$product);
102 $this->newProductPage->getFormPageActions()->save();
114 if ($this->configData) {
115 $this->objectManager->create(
116 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
117 [
'configData' => $this->configData,
'rollback' =>
true]
__inject(CatalogProductIndex $productGrid, CatalogProductNew $newProductPage)
test(CatalogProductSimple $product, $configData=null)