From af42d9d9fd67ee877142cb18f6945430a8f94ae8 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Fri, 27 Mar 2026 00:06:25 +0100 Subject: [PATCH] refactor(shortcuts): use data-testid selectors for reliable targeting Add data-testid="nav-settings" to the Settings menu item in AccountSettings so the open-settings shortcut no longer relies on fragile text-content matching ('Settings' but not 'Keyboard'). --- client/src/components/Nav/AccountSettings.tsx | 6 +++++- client/src/hooks/useKeyboardShortcuts.ts | 9 ++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/client/src/components/Nav/AccountSettings.tsx b/client/src/components/Nav/AccountSettings.tsx index 529ab1b87d..401c301a7f 100644 --- a/client/src/components/Nav/AccountSettings.tsx +++ b/client/src/components/Nav/AccountSettings.tsx @@ -89,7 +89,11 @@ function AccountSettings({ collapsed = false }: { collapsed?: boolean }) {