9 use Magento\Cms\Test\Page\CmsIndex;
10 use Magento\Customer\Test\Page\CustomerAccountIndex;
11 use Magento\Mtf\Constraint\AbstractConstraint;
35 public function processAssert(CustomerAccountIndex $customerAccountIndex, CmsIndex $cmsIndex)
37 $customerAccountIndex->open();
38 $cmsIndex->getCmsPageBlock()->waitPageInit();
40 $cmsIndex->getLinksBlock()->openLink(
'Sign Out');
41 $cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible(self::LOGOUT_PAGE_TITLE);
42 $cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible(self::HOME_PAGE_TITLE);
43 $cmsIndex->getCmsPageBlock()->waitPageInit();
44 \PHPUnit\Framework\Assert::assertTrue(
45 $cmsIndex->getLinksBlock()->isLinkVisible(
'Sign In'),
46 "Customer wasn't logged out." 57 return "Customer is successfully log out.";
processAssert(CustomerAccountIndex $customerAccountIndex, CmsIndex $cmsIndex)