diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-02-09 17:54:59 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-02-09 17:54:59 -0800 |
commit | c77998209f779dfccd86afeeafd43a7bbd886ff2 (patch) | |
tree | ff1b5fc33b1d5115f0f62eb4ea02848cdf468bc6 /tests | |
parent | e47d56ac36d0f1d3e47392a7d9688decf847e1bc (diff) | |
download | nextcloud-server-c77998209f779dfccd86afeeafd43a7bbd886ff2.tar.gz nextcloud-server-c77998209f779dfccd86afeeafd43a7bbd886ff2.zip |
Port user menu to Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'tests')
-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"); } |