10 use Magento\Cms\Test\Page\CmsIndex;
11 use Magento\Mtf\Client\BrowserInterface;
12 use Magento\Mtf\Constraint\AbstractConstraint;
28 public function processAssert(CmsIndex $cmsIndex, BrowserInterface $browser, CatalogSearchQuery $searchTerm)
30 $queryText = $searchTerm->getQueryText();
31 $cmsIndex->open()->getSearchBlock()->search($queryText);
32 \PHPUnit\Framework\Assert::assertNotEquals(
34 $searchTerm->getRedirect(),
35 'Url in the browser corresponds to Url in fixture (redirect has been performed).' 36 . PHP_EOL .
'Search term: "' . $queryText .
'"' 47 return 'Search term was successfully removed (redirects to the specified URL was not performed).';
processAssert(CmsIndex $cmsIndex, BrowserInterface $browser, CatalogSearchQuery $searchTerm)