Skip to content

Commit 178fcc9

Browse files
author
Dmytro Bursak
committed
MTA-2308: [CS] Wishlist module functional tests maintenance
- Corrected customer logout step
1 parent d80741a commit 178fcc9

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

dev/tests/functional/tests/app/Magento/Customer/Test/TestStep/LogoutCustomerOnFrontendStep.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,12 @@ public function __construct(CmsIndex $cmsIndex, CustomerAccountLogout $customerA
5252
*/
5353
public function run()
5454
{
55-
/* @TODO: MAGETWO-37391
56-
* $this->cmsIndex->open();
57-
* $this->cmsIndex->getCmsPageBlock()->waitPageInit();
58-
* if ($this->cmsIndex->getLinksBlock()->isLinkVisible("Log Out")) {
59-
* $this->cmsIndex->getLinksBlock()->openLink("Log Out");
60-
* $this->cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible('Home Page');
61-
* $this->cmsIndex->getCmsPageBlock()->waitPageInit();
62-
* }
63-
*/
64-
$this->customerAccountLogout->open();
65-
if (self::LOGOUT_PAGE_TITLE == $this->cmsIndex->getCmsPageBlock()->getPageTitle()) {
55+
$this->cmsIndex->open();
56+
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
57+
if ($this->cmsIndex->getLinksBlock()->isLinkVisible("Log Out")) {
58+
$this->cmsIndex->getLinksBlock()->openLink("Log Out");
6659
$this->cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible('Home Page');
60+
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
6761
}
68-
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
6962
}
7063
}

0 commit comments

Comments
 (0)