/** * Test update downloadable product * * @param CatalogProductDownloadable $product * @param CatalogCategory $category * @return void */ public function testUpdateDownloadableProduct(CatalogProductDownloadable $product, CatalogCategory $category) { $filter = ['sku' => $this->product->getSku()]; $this->catalogProductIndex->open()->getProductGrid()->searchAndOpen($filter); $productBlockForm = $this->catalogProductEdit->getForm(); $productBlockForm->fillProduct($product, $category); $this->catalogProductEdit->getFormAction()->save(); }