9 use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
10 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductAttributeIndex;
11 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductAttributeNew;
12 use Magento\Mtf\TestStep\TestStepInterface;
63 $filter = $this->attribute->hasData(
'attribute_code')
64 ? [
'attribute_code' => $this->attribute->getAttributeCode()]
65 : [
'frontend_label' => $this->attribute->getFrontendLabel()];
66 $this->catalogProductAttributeIndex->open();
67 if ($this->catalogProductAttributeIndex->getGrid()->isRowVisible($filter)) {
68 $this->catalogProductAttributeIndex->getGrid()->searchAndOpen($filter);
69 $this->catalogProductAttributeNew->getPageActions()->delete();
70 $this->catalogProductAttributeNew->getModalBlock()->acceptAlert();
$catalogProductAttributeIndex
__construct(CatalogProductAttributeIndex $catalogProductAttributeIndex, CatalogProductAttributeNew $catalogProductAttributeNew, CatalogProductAttribute $attribute)
$catalogProductAttributeNew