Skip to content

Commit

Permalink
[Behat] IBX-8216: As a QA I want to cover Focus mode with a Visual Te…
Browse files Browse the repository at this point in the history
…st (#1280)

* IBX-8216: Added toggle menu function

* Fix CS

---------

Co-authored-by: katarzynazawada <>
  • Loading branch information
katarzynazawada authored Jul 5, 2024
1 parent e1fa3c4 commit 59bad30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/Behat/Component/LeftMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public function goToSubTab(string $tabName): void
->click();
}

public function toggleMenu(): void
{
$this->getHTMLPage()->find($this->getLocator('menuToggler'))->click();
}

public function verifyIsLoaded(): void
{
$this->getHTMLPage()->find($this->getLocator('menuSelector'))->assert()->isVisible();
Expand All @@ -47,6 +52,7 @@ protected function specifyLocators(): array
new VisibleCSSLocator('menuSelector', '.ibexa-main-menu'),
new VisibleCSSLocator('menuFirstLevel', '.ibexa-main-menu__navbar--first-level'),
new VisibleCSSLocator('menuSecondLevel', '.ibexa-main-menu__navbar--second-level'),
new VisibleCSSLocator('menuToggler', '.ibexa-main-menu__toggler'),
];
}
}

0 comments on commit 59bad30

Please sign in to comment.