11 use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
12 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
13 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew;
15 use Magento\Mtf\Constraint\AbstractConstraint;
36 public function processAssert(
37 CatalogProductAttribute $productAttribute,
39 CatalogProductIndex $productGrid,
40 CatalogProductNew $newProductPage
43 $productGrid->getGridPageActionBlock()->addProduct(
'simple');
46 $newProductPage->getProductForm()->fill($assertProduct);
47 $variationsTab = $newProductPage->getProductForm()->getSection(self::TAB_VARIATIONS);
48 $variationsTab->createConfigurations();
49 $attributesGrid = $variationsTab->getAttributeBlock()->getAttributesGrid();
50 \PHPUnit\Framework\Assert::assertFalse(
51 $attributesGrid->isRowVisible([
'frontend_label' => $productAttribute->getFrontendLabel()]),
52 "Product attribute found in Attribute Search form." 63 return "Product Attribute is absent in Attribute Search form.";