From e99fed2e7613ac1ec42cf26ebf67b4f4cd77d2a8 Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Thu, 5 Mar 2026 19:44:06 -0800 Subject: [PATCH] Add some test coverage --- .../settings/SettingsFanoutSection.tsx | 8 +- tests/e2e/specs/apprise.spec.ts | 205 ++++++++++ tests/e2e/specs/bot.spec.ts | 5 +- tests/e2e/specs/webhook.spec.ts | 172 +++++++++ ...ings.spec.ts => zz-radio-settings.spec.ts} | 0 tests/test_fanout.py | 158 ++++++++ tests/test_fanout_integration.py | 360 ++++++++++++++++++ 7 files changed, 901 insertions(+), 7 deletions(-) create mode 100644 tests/e2e/specs/apprise.spec.ts create mode 100644 tests/e2e/specs/webhook.spec.ts rename tests/e2e/specs/{radio-settings.spec.ts => zz-radio-settings.spec.ts} (100%) diff --git a/frontend/src/components/settings/SettingsFanoutSection.tsx b/frontend/src/components/settings/SettingsFanoutSection.tsx index 1a30ebc..5d2d57a 100644 --- a/frontend/src/components/settings/SettingsFanoutSection.tsx +++ b/frontend/src/components/settings/SettingsFanoutSection.tsx @@ -75,8 +75,7 @@ function getStatusLabel(status: string | undefined, type?: string) { } function getStatusColor(status: string | undefined, enabled?: boolean) { - if (enabled === false) - return 'bg-warning shadow-[0_0_6px_hsl(var(--warning)/0.5)]'; + if (enabled === false) return 'bg-warning shadow-[0_0_6px_hsl(var(--warning)/0.5)]'; if (status === 'connected') return 'bg-status-connected shadow-[0_0_6px_hsl(var(--status-connected)/0.5)]'; if (status === 'error') return 'bg-destructive shadow-[0_0_6px_hsl(var(--destructive)/0.5)]'; @@ -1088,7 +1087,10 @@ export function SettingsFanoutSection({