mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-24 12:13:28 +00:00
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:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user