diff options
Diffstat (limited to 'tests/acceptance/features/bootstrap/SettingsMenuContext.php')
-rw-r--r-- | tests/acceptance/features/bootstrap/SettingsMenuContext.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/acceptance/features/bootstrap/SettingsMenuContext.php b/tests/acceptance/features/bootstrap/SettingsMenuContext.php index eaf667d4423..dfd090f921a 100644 --- a/tests/acceptance/features/bootstrap/SettingsMenuContext.php +++ b/tests/acceptance/features/bootstrap/SettingsMenuContext.php @@ -32,7 +32,7 @@ class SettingsMenuContext implements Context, ActorAwareInterface { * @return Locator */ public static function settingsSectionInHeader() { - return Locator::forThe()->xpath("//*[@id = 'header']//*[@id = 'settings']")-> + return Locator::forThe()->xpath("//*[@id = 'header']//*[@id = 'user-menu']")-> describedAs("Settings menu section in the header"); } @@ -40,7 +40,7 @@ class SettingsMenuContext implements Context, ActorAwareInterface { * @return Locator */ public static function settingsMenuButton() { - return Locator::forThe()->id("expand")-> + return Locator::forThe()->css(".header-menu__trigger")-> descendantOf(self::settingsSectionInHeader())-> describedAs("Settings menu button"); } @@ -49,7 +49,7 @@ class SettingsMenuContext implements Context, ActorAwareInterface { * @return Locator */ public static function settingsMenu() { - return Locator::forThe()->id("expanddiv")-> + return Locator::forThe()->css(".user-menu__nav")-> descendantOf(self::settingsSectionInHeader())-> describedAs("Settings menu"); } |