Skip to content

Commit

Permalink
[Behat] Adapted tests to user menu changes (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon authored Dec 2, 2021
1 parent 1fd9abe commit 2b678cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Behat/Component/UpperMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'),
];
}
Expand Down

0 comments on commit 2b678cc

Please sign in to comment.