diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-23 20:14:19 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-24 11:01:11 +0200 |
commit | 0274507cb10b53cfd38bd0ae3810c26cdb172ad1 (patch) | |
tree | 7816c91efded77f8738f1eae44dad22d888cbe65 /tests/acceptance | |
parent | 262cb04c3ab4f102af206e7757707b4a20a53f41 (diff) | |
download | nextcloud-server-0274507cb10b53cfd38bd0ae3810c26cdb172ad1.tar.gz nextcloud-server-0274507cb10b53cfd38bd0ae3810c26cdb172ad1.zip |
Acceptance and mobile navigation fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests/acceptance')
-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"); } |