From a9991f0d226fd1bed6f67a4bbace681d97938e96 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 19:35:24 +0100 Subject: [PATCH] test: verify gateway probe summaries --- src/commands/gateway-status/helpers.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/commands/gateway-status/helpers.test.ts b/src/commands/gateway-status/helpers.test.ts index b35591cfda4..92cb30e64b3 100644 --- a/src/commands/gateway-status/helpers.test.ts +++ b/src/commands/gateway-status/helpers.test.ts @@ -247,8 +247,9 @@ describe("probe reachability classification", () => { expect(isScopeLimitedProbeFailure(probe)).toBe(true); expect(isProbeReachable(probe)).toBe(true); - expect(renderProbeSummaryLine(probe, false)).toContain("Capability: write-capable"); - expect(renderProbeSummaryLine(probe, false)).toContain("Read probe: limited"); + expect(renderProbeSummaryLine(probe, false)).toBe( + "Connect: ok (51ms) · Capability: write-capable · Read probe: limited - missing scope: operator.read", + ); }); it("treats post-connect read failures as reachable with failed diagnostics", () => { @@ -272,8 +273,9 @@ describe("probe reachability classification", () => { expect(isScopeLimitedProbeFailure(probe)).toBe(false); expect(isPostConnectProbeFailure(probe)).toBe(true); expect(isProbeReachable(probe)).toBe(true); - expect(renderProbeSummaryLine(probe, false)).toContain("Capability: connect-only"); - expect(renderProbeSummaryLine(probe, false)).toContain("Read probe: failed"); + expect(renderProbeSummaryLine(probe, false)).toBe( + "Connect: ok (43ms) · Capability: connect-only · Read probe: failed - unknown method: status", + ); }); it("keeps failed-before-connect probes unreachable", () => {