summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-01-12 01:35:53 +0000
committerChristopher Ng <chrng8@gmail.com>2023-01-13 23:19:28 +0000
commitf6aa5224c4c8a1e9e57f0a8069bd5f70054314e8 (patch)
treedf492c57c99bd6cfeea6d381faf1beb693cad89c /tests
parentf7ff54860bef10c856542bb17ceb90e824c62dc8 (diff)
downloadnextcloud-server-f6aa5224c4c8a1e9e57f0a8069bd5f70054314e8.tar.gz
nextcloud-server-f6aa5224c4c8a1e9e57f0a8069bd5f70054314e8.zip
Focus trap contacts menu with NcHeaderMenu port
Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com> Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/bootstrap/ContactsMenuContext.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/acceptance/features/bootstrap/ContactsMenuContext.php b/tests/acceptance/features/bootstrap/ContactsMenuContext.php
index ae4eab89ec7..b22f33a3c55 100644
--- a/tests/acceptance/features/bootstrap/ContactsMenuContext.php
+++ b/tests/acceptance/features/bootstrap/ContactsMenuContext.php
@@ -31,7 +31,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
* @return Locator
*/
public static function contactsMenuButton() {
- return Locator::forThe()->xpath("//*[@id = 'header']//*[@id = 'contactsmenu']")->
+ return Locator::forThe()->xpath("//*[@id = 'header']//*[@id = 'contactsmenu']//*[@class = 'header-menu__trigger']")->
describedAs("Contacts menu button");
}
@@ -39,8 +39,7 @@ class ContactsMenuContext implements Context, ActorAwareInterface {
* @return Locator
*/
public static function contactsMenu() {
- return Locator::forThe()->css(".menu")->
- descendantOf(self::contactsMenuButton())->
+ return Locator::forThe()->xpath("//*[@id = 'header']//*[@id = 'contactsmenu']//*[@id = 'contactsmenu-menu']")->
describedAs("Contacts menu");
}