Skip to content

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

test(boot-check-gate): cover boot check gate rendering

Steven Enamakel90c293030f12
diff --git a/app/src/components/BootCheckGate/__tests__/BootCheckGate.test.tsx b/app/src/components/BootCheckGate/__tests__/BootCheckGate.test.tsx
index af7692b9fb..9e76c49f3d 100644
--- a/app/src/components/BootCheckGate/__tests__/BootCheckGate.test.tsx
+++ b/app/src/components/BootCheckGate/__tests__/BootCheckGate.test.tsx
@@ -384,6 +384,24 @@ describe('BootCheckGate — picker test connection', () => {
});
}
+ it('flags a core with realtime (Socket.IO) disabled even though RPC works', async () => {
+ mockTestCoreRpcConnection.mockResolvedValue({
+ ok: true,
+ status: 200,
+ json: async () => ({ result: { ok: true } }),
+ } as unknown as Response);
+ mockProbeCoreRealtime.mockResolvedValue('disabled');
+
+ await renderPicker();
+ fillCloudInputs();
+ fireEvent.click(screen.getByRole('button', { name: 'Test Connection' }));
+
+ await waitFor(() => {
+ expect(screen.getByTestId('test-status-socket-disabled')).toHaveTextContent('--jsonrpc-only');
+ });
+ expect(screen.queryByTestId('test-status-ok')).not.toBeInTheDocument();
+ });
+
it('shows Connected on a 200 response', async () => {
mockTestCoreRpcConnection.mockResolvedValue({
ok: true,