Ejemplo n.º 1
0
 /**
  * Save product form with window confirmation
  *
  * @param BackendPage $page
  * @param FixtureInterface $product
  * @return void
  */
 public function saveProduct(BackendPage $page, FixtureInterface $product)
 {
     parent::save();
     /** @var \Magento\Catalog\Test\Block\Adminhtml\Product\AffectedAttributeSetForm $affectedAttributeSetForm */
     $affectedAttributeSetForm = $page->getAffectedAttributeSetForm();
     $affectedAttributeSetForm->fill($product)->confirm();
 }
Ejemplo n.º 2
0
 /**
  * Click on "Save" button
  *
  * @return void
  */
 public function save()
 {
     parent::save();
     $warningBlock = $this->browser->find($this->warningBlock);
     if ($warningBlock->isVisible()) {
         $warningBlock->click();
     }
 }
 /**
  * Click on "Save" button
  *
  * @param FixtureInterface|null $product [optional]
  * @return void
  */
 public function save(FixtureInterface $product = null)
 {
     $typeId = null;
     if ($product) {
         $dataConfig = $product->getDataConfig();
         $typeId = isset($dataConfig['type_id']) ? $dataConfig['type_id'] : null;
     }
     if ($this->hasRender($typeId)) {
         $this->callRender($typeId, 'save', ['product' => $product]);
     } else {
         parent::save();
     }
 }