Skip to content

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

test(smoke): update telegram connection assertion

Steven Enamakeldd863d14ac0d
diff --git a/app/test/playwright/specs/channels-smoke.spec.ts b/app/test/playwright/specs/channels-smoke.spec.ts
index cdee26ffcc..32b8ca7b2d 100644
--- a/app/test/playwright/specs/channels-smoke.spec.ts
+++ b/app/test/playwright/specs/channels-smoke.spec.ts
@@ -35,10 +35,9 @@ async function telegramConnected(): Promise<boolean> {
(entry.auth_mode ?? entry.authMode) === 'bot_token'
);
expect(telegram, 'channels_status includes Telegram').toBeDefined();
- expect(typeof telegram?.connected, 'Telegram status includes a boolean connected field').toBe(
- 'boolean'
- );
- return telegram!.connected;
+ const connected = telegram?.connected;
+ expect(typeof connected, 'Telegram status includes a boolean connected field').toBe('boolean');
+ return connected as boolean;
}
test.describe('Channels Smoke', () => {