From f6aa5224c4c8a1e9e57f0a8069bd5f70054314e8 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 12 Jan 2023 01:35:53 +0000 Subject: Focus trap contacts menu with NcHeaderMenu port Signed-off-by: Christopher Ng Signed-off-by: nextcloud-command Signed-off-by: Christopher Ng --- tests/acceptance/features/bootstrap/ContactsMenuContext.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/acceptance') 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"); } -- cgit v1.2.3