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.
This commit is contained in:
rcourtman
2026-04-20 10:16:44 +01:00
parent 12c9261a51
commit e1e4b7f3a7
@@ -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('<AddressProbeStep');
expect(connectionEditorSource).not.toContain('NodeModal');