10 use Magento\Catalog\Test\Page\Product\CatalogProductView;
11 use Magento\Cms\Test\Page\CmsIndex;
13 use Magento\Mtf\Constraint\AbstractConstraint;
31 CatalogProductView $productView,
39 $cmsIndex->getTopmenu()->selectCategoryByName($widget->getWidgetInstance()[0][
'entities']->getName());
40 $cmsIndex->getWidgetView()->clickToWidget($widget, $widget->getParameters()[
'anchor_text']);
41 $title = $productView->getTitleBlock()->getTitle();
42 \PHPUnit\Framework\Assert::assertEquals(
43 $widget->getParameters()[
'entities'][0]->getName(),
45 'Wrong product title.' 56 return "Widget link on frontend system redirects to Product page defined in widget.";