/** * @When I delete the :product product * @When I try to delete the :product product */ public function iDeleteProduct(ProductInterface $product) { $this->sharedStorage->set('product', $product); $this->iWantToBrowseProducts(); $this->indexPage->deleteResourceOnPage(['name' => $product->getName()]); }