10 use Magento\CatalogSearch\Test\Page\Adminhtml\CatalogSearchIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
32 public function processAssert(CatalogSearchIndex $indexPage, CatalogSearchQuery $searchTerm)
34 $grid = $indexPage->open()->getGrid();
36 'search_query' => $searchTerm->getQueryText(),
37 'store_id' => $searchTerm->getStoreId(),
38 'results_from' => $searchTerm->getNumResults(),
39 'popularity_from' => $searchTerm->getPopularity(),
40 'redirect' => $searchTerm->getRedirect(),
41 'display_in_terms' => strtolower($searchTerm->getDisplayInTerms()),
47 \PHPUnit\Framework\Assert::assertTrue(
48 $grid->isRowVisible(
$filters,
false),
49 'Row terms according to the filters is not found.' 60 return 'Row term according to the filters is not found.';
processAssert(CatalogSearchIndex $indexPage, CatalogSearchQuery $searchTerm)