10 use Magento\Catalog\Test\Page\Category\CatalogCategoryView;
11 use Magento\Cms\Test\Page\CmsIndex;
12 use Magento\Mtf\Constraint\AbstractConstraint;
29 CatalogCategoryView $catalogCategoryView,
34 \PHPUnit\Framework\Assert::assertTrue(
35 $catalogCategoryView->getTopmenu()->isCategoryVisible(
$category->getName()),
36 'Expected that ' .
$category->getName() .
' is visible in navigation menu, but it is not.' 39 \PHPUnit\Framework\Assert::assertFalse(
40 $catalogCategoryView->getTopmenu()->isCategoryVisible(
$category->getName()),
41 'Expected that ' .
$category->getName() .
' is not visible in navigation menu, but it is.' 53 return "All category's visibility in navigation menu are true";