Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(notifications): remove unused unread count helper

Steven Enamakela08797f4e979
diff --git a/app/test/playwright/specs/notifications.spec.ts b/app/test/playwright/specs/notifications.spec.ts
index ce3220072a..334e5d5f1a 100644
--- a/app/test/playwright/specs/notifications.spec.ts
+++ b/app/test/playwright/specs/notifications.spec.ts
@@ -7,14 +7,6 @@ import {
waitForAppReady,
} from '../helpers/core-rpc';
-function getUnreadCount(stats: Record<string, unknown>): number {
- for (const key of ['unread_count', 'unread', 'total_unread']) {
- const value = stats[key];
- if (typeof value === 'number') return value;
- }
- return 0;
-}
-
async function waitForNotificationsSections(page: Page): Promise<void> {
await expect(page.getByTestId('integration-notifications-section')).toBeVisible();
await expect(page.getByTestId('system-events-section')).toBeVisible();