Skip to content

Commit 90da28f

Browse files
author
Dmytro Aponasenko
committed
MTA-1814: Analyse functional test failures - Sprint 9
1 parent 6db3fd5 commit 90da28f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Block/Menu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Menu extends Block
3333
*
3434
* @var string
3535
*/
36-
protected $subMenuItem = './/li[@role="menu-item"]//a[span="%s"]';
36+
protected $subMenuItem = '//li[@role="menu-item"]//a[span="%s"]';
3737

3838
/**
3939
* Parent menu item.
@@ -92,7 +92,7 @@ public function navigate($menuItem)
9292
$this->waitForElementVisible($subMenuSelector, Locator::SELECTOR_XPATH);
9393
$subMenuItem = $subMenuSelector . sprintf($this->subMenuItem, $subMenu);
9494
$this->waitForElementVisible($subMenuItem, Locator::SELECTOR_XPATH);
95-
$subMenuItem->click();
95+
$this->_rootElement->find($subMenuItem, Locator::SELECTOR_XPATH)->click();
9696
$this->waitForElementNotVisible($subMenuSelector, Locator::SELECTOR_XPATH);
9797
}
9898
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function run()
6464
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
6565
if ($this->cmsIndex->getLinksBlock()->isLinkVisible("Log Out")) {
6666
$this->cmsIndex->getLinksBlock()->openLink("Log Out");
67+
$this->cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible('Home Page');
6768
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
6869
}
6970
$this->cmsIndex->getLinksBlock()->openLink("Log In");

0 commit comments

Comments
 (0)