9 use Magento\Cms\Test\Page\CmsIndex;
10 use Magento\Mtf\Fixture\InjectableFixture;
11 use Magento\Mtf\Constraint\AbstractConstraint;
12 use Magento\CatalogSearch\Test\Page\CatalogsearchResult;
13 use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
33 CatalogsearchResult $catalogSearchResult
38 $cmsIndex->getSearchBlock()->search($searchValue);
41 $isVisible = $catalogSearchResult->getListProductBlock()->getProductItem(
$product)->isVisible();
42 }
while (!$isVisible && $catalogSearchResult->getBottomToolbar()->nextPage());
44 \PHPUnit\Framework\Assert::assertTrue($isVisible,
'Product attribute is not searchable on Frontend.');
58 case 'Multiple Select':
61 if (
$option[
'is_default'] ==
'Yes') {
62 $searchValue =
$option[
'admin'];
67 $searchValue =
$attribute->getDefaultValueText();
70 $searchValue =
$attribute->getDefaultValueTextarea();
73 $searchValue =
$attribute->getDefaultValueDate();
76 $searchValue =
$attribute->getDefaultValueYesno();
90 return 'Product attribute is searchable on Frontend.';
processAssert(CatalogProductAttribute $attribute, CmsIndex $cmsIndex, InjectableFixture $product, CatalogsearchResult $catalogSearchResult)
getSearchValue(CatalogProductAttribute $attribute)