Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-23 21:14:19 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-24 12:01:11 +0300
commit0274507cb10b53cfd38bd0ae3810c26cdb172ad1 (patch)
tree7816c91efded77f8738f1eae44dad22d888cbe65 /tests/acceptance
parent262cb04c3ab4f102af206e7757707b4a20a53f41 (diff)
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.php14
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");
}