From 2b678cc9b7b5fe123e53c3a42f3bc3c0a52042fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 2 Dec 2021 14:32:14 +0100 Subject: [PATCH] [Behat] Adapted tests to user menu changes (#82) --- src/lib/Behat/Component/UpperMenu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Behat/Component/UpperMenu.php b/src/lib/Behat/Component/UpperMenu.php index 3d9e14c7c4..efc898edb9 100644 --- a/src/lib/Behat/Component/UpperMenu.php +++ b/src/lib/Behat/Component/UpperMenu.php @@ -29,7 +29,7 @@ public function hasUnreadNotification(): bool public function openNotifications(): void { - $this->getHTMLPage()->find($this->getLocator('userImage'))->click(); + $this->getHTMLPage()->find($this->getLocator('userNotifications'))->click(); } public function chooseFromUserDropdown(string $option): void @@ -49,7 +49,7 @@ protected function specifyLocators(): array new VisibleCSSLocator('dashboardLink', '.ibexa-main-header__brand'), new VisibleCSSLocator('pendingNotification', '.ibexa-header-user-menu__notice-dot'), new VisibleCSSLocator('userSettingsToggle', '.ibexa-header-user-menu'), - new VisibleCSSLocator('userImage', '.ibexa-header-user-menu__image'), + new VisibleCSSLocator('userNotifications', '.ibexa-header-user-menu__notifications-toggler'), new VisibleCSSLocator('userSettingsItem', '.ibexa-popup-menu__item'), ]; }