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