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): reveal notification dismiss on focused rows

Louis Beaumontab756299219e
diff --git a/apps/screenpipe-app-tauri/components/notification-bell.tsx b/apps/screenpipe-app-tauri/components/notification-bell.tsx
index 167139dbe..b4ec85485 100644
--- a/apps/screenpipe-app-tauri/components/notification-bell.tsx
+++ b/apps/screenpipe-app-tauri/components/notification-bell.tsx
@@ -307,7 +307,7 @@ export function NotificationBell() {
e.stopPropagation();
dismissOne(entry.id);
}}
- className="p-0.5 rounded hover:bg-muted/60 opacity-0 group-hover/notif:opacity-100 transition-opacity"
+ className="p-0.5 rounded hover:bg-muted/60 opacity-0 group-hover/notif:opacity-100 group-focus/notif:opacity-100 group-focus-within/notif:opacity-100 focus:opacity-100 transition-opacity"
title="dismiss"
>
<X className="w-3 h-3 text-muted-foreground/50 hover:text-foreground" />
diff --git a/apps/screenpipe-app-tauri/e2e/specs/windows-user-journey.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/windows-user-journey.spec.ts
index f3f66ee15..03c9111f5 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/windows-user-journey.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/windows-user-journey.spec.ts
@@ -792,6 +792,7 @@ describe("Windows user journey", function () {
const reopenedItem = await $(itemSelector);
await reopenedItem.waitForDisplayed({ timeout: t(20_000) });
await reopenedItem.moveTo();
+ await reopenedItem.click();
const dismissButton = await $(`[data-testid="notification-bell-dismiss-${notificationId}"]`);
await dismissButton.waitForDisplayed({ timeout: t(10_000) });