From e1e4b7f3a797b6baeae2b8089bf1bbbe5d3fde17 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Mon, 20 Apr 2026 10:16:44 +0100 Subject: [PATCH] test(settings): align architecture snapshot with two-mode editor copy The architecture test still pinned "Paste an address and Pulse detects the product." inside ConnectionEditor.tsx. That helper line was moved to InfrastructureWorkspace.tsx (and rephrased) when the add flow was restructured around the Platform API / Pulse Unified Agent cards. Replace the stale copy assertion with the anchors that actually matter for the shared-editor model: the two-mode labels and the install-agent CTA. Keeps the test honest about what the editor renders today. --- .../Settings/__tests__/settingsArchitecture.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts index bc5607076..93bf5ac41 100644 --- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts +++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts @@ -77,7 +77,9 @@ describe('settings architecture guardrails', () => { it('keeps probe-first connection setup and inline node credentials on the shared editor model', () => { expect(connectionEditorSource).toContain("import { AddressProbeStep } from './AddressProbeStep';"); expect(connectionEditorSource).toContain('const DEFAULT_MANUAL_TYPES: ConnectionType[] ='); - expect(connectionEditorSource).toContain('Paste an address and Pulse detects the product.'); + expect(connectionEditorSource).toContain('Platform API'); + expect(connectionEditorSource).toContain('Pulse Unified Agent'); + expect(connectionEditorSource).toContain('Install the Unified Agent on a host'); expect(connectionEditorSource).toContain('