9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
12 use Magento\CatalogRule\Test\Page\Adminhtml\CatalogRuleNew;
13 use Magento\CatalogRule\Test\Page\Adminhtml\CatalogRuleIndex;
28 public function processAssert(
29 CatalogRuleIndex $catalogRuleIndex,
30 CatalogRuleNew $catalogRuleNew,
33 $catalogRuleIndex->open();
34 $catalogRuleIndex->getGridPageActions()->addNew();
35 $catalogRuleNew->getEditForm()->openSection(
'conditions');
38 $conditionsSection = $catalogRuleNew->getEditForm()->getSection(
'conditions');
39 \PHPUnit\Framework\Assert::assertTrue(
40 $conditionsSection->isAttributeInConditions(
$attribute),
41 'Product attribute can\'t be used on promo rules conditions.' 52 return 'Product attribute can be used on promo rules conditions.';