diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-07-24 11:26:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-24 11:26:22 +0200 |
commit | dfe6c1b7e2a179a0c7aee0f43a722bf1e3e3cf3d (patch) | |
tree | d7ba884d6d0814011ea6cd408bdb08991e8d4b39 /tests/acceptance/features/bootstrap/SettingsMenuContext.php | |
parent | 262cb04c3ab4f102af206e7757707b4a20a53f41 (diff) | |
parent | 84bc30200e2acab9e2967b47480f33500a6ebc49 (diff) | |
download | nextcloud-server-dfe6c1b7e2a179a0c7aee0f43a722bf1e3e3cf3d.tar.gz nextcloud-server-dfe6c1b7e2a179a0c7aee0f43a722bf1e3e3cf3d.zip |
Merge pull request #10363 from nextcloud/structure-mobile-and-public-fixes
Structure mobile and public fixes
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"); } |