10 use Magento\Tax\Test\Page\Adminhtml\TaxRuleIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
26 TaxRuleIndex $taxRuleIndex,
28 TaxRule $initialTaxRule =
null 30 if ($initialTaxRule !==
null) {
31 $taxRuleCode = (
$taxRule->hasData(
'code')) ?
$taxRule->getCode() : $initialTaxRule->getCode();
36 'code' => $taxRuleCode,
39 $taxRuleIndex->open();
40 \PHPUnit\Framework\Assert::assertTrue(
41 $taxRuleIndex->getTaxRuleGrid()->isRowVisible($filter),
42 'Tax Rule \'' . $filter[
'code'] .
'\' is absent in Tax Rule grid.
' 51 public function toString() 53 return 'Tax rule is present in grid.
';
processAssert(TaxRuleIndex $taxRuleIndex, TaxRule $taxRule, TaxRule $initialTaxRule=null)