/**
  * Run Delete used in configurable product attribute test
  *
  * @param CatalogProductConfigurable $product
  * @return array
  */
 public function test(CatalogProductConfigurable $product)
 {
     // Precondition
     $product->persist();
     /** @var CatalogProductAttribute $attribute */
     $attribute = $product->getConfigurableAttributesData()['attributes'][0];
     // Steps
     $this->attributeIndex->open();
     $this->attributeIndex->getGrid()->searchAndOpen(['attribute_code' => $attribute->getAttributeCode()]);
     $this->attributeNew->getPageActions()->delete();
     return ['attribute' => $attribute];
 }