/**
  * {@inheritdoc}
  */
 public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType)
 {
     $this->clickTabIfItsNotActive('associations');
     $item = $this->getElement('association_dropdown_item_selected', ['%association%' => $productAssociationType->getName(), '%item%' => $productName]);
     $deleteIcon = $item->find('css', 'i.delete');
     Assert::notNull($deleteIcon);
     $deleteIcon->click();
 }
 /**
  * @Then /^(this product association type) should no longer exist in the registry$/
  */
 public function thisProductAssociationTypeShouldNoLongerExistInTheRegistry(ProductAssociationTypeInterface $productAssociationType)
 {
     Assert::false($this->indexPage->isSingleResourceOnPage(['code' => $productAssociationType->getCode(), 'name' => $productAssociationType->getName()]), sprintf('Product association type %s should no longer exist in the registry', $productAssociationType->getName()));
 }