Skip to content

Commit 59bad30

Browse files
[Behat] IBX-8216: As a QA I want to cover Focus mode with a Visual Test (#1280)
* IBX-8216: Added toggle menu function * Fix CS --------- Co-authored-by: katarzynazawada <>
1 parent e1fa3c4 commit 59bad30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/Behat/Component/LeftMenu.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public function goToSubTab(string $tabName): void
3434
->click();
3535
}
3636

37+
public function toggleMenu(): void
38+
{
39+
$this->getHTMLPage()->find($this->getLocator('menuToggler'))->click();
40+
}
41+
3742
public function verifyIsLoaded(): void
3843
{
3944
$this->getHTMLPage()->find($this->getLocator('menuSelector'))->assert()->isVisible();
@@ -47,6 +52,7 @@ protected function specifyLocators(): array
4752
new VisibleCSSLocator('menuSelector', '.ibexa-main-menu'),
4853
new VisibleCSSLocator('menuFirstLevel', '.ibexa-main-menu__navbar--first-level'),
4954
new VisibleCSSLocator('menuSecondLevel', '.ibexa-main-menu__navbar--second-level'),
55+
new VisibleCSSLocator('menuToggler', '.ibexa-main-menu__toggler'),
5056
];
5157
}
5258
}

0 commit comments

Comments
 (0)