Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(e2e): click notification bell row directly

Louis Beaumont20b1df0745b2
diff --git a/apps/screenpipe-app-tauri/components/notification-bell.tsx b/apps/screenpipe-app-tauri/components/notification-bell.tsx
index 6ef233733..167139dbe 100644
--- a/apps/screenpipe-app-tauri/components/notification-bell.tsx
+++ b/apps/screenpipe-app-tauri/components/notification-bell.tsx
@@ -224,11 +224,14 @@ export function NotificationBell() {
return (
<div
key={entry.id}
- data-testid={`notification-bell-item-${entry.id}`}
data-notification-id={entry.id}
className="border-b border-border/50 last:border-0"
>
<div
+ data-testid={`notification-bell-item-${entry.id}`}
+ role="button"
+ tabIndex={0}
+ aria-expanded={isExpanded}
className="group/notif px-3 py-2 hover:bg-muted/30 cursor-pointer"
onClick={() => {
const willExpand = !isExpanded;
@@ -241,6 +244,12 @@ export function NotificationBell() {
});
}
}}
+ onKeyDown={(e) => {
+ if (e.key !== "Enter" && e.key !== " ") return;
+ e.preventDefault();
+ const willExpand = !isExpanded;
+ setExpandedId(willExpand ? entry.id : null);
+ }}
>
<div className="flex items-start justify-between gap-2">
<div className="flex-1 min-w-0">