mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-19 07:54:10 +00:00
Add setup completion polish guardrails
This commit is contained in:
parent
0f4ad7d024
commit
9695ae5fc7
1 changed files with 11 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ describe('SetupCompletionPanel guardrails', () => {
|
|||
it('describes setup completion through one compact source-choice next-step surface', () => {
|
||||
expect(setupCompletionPanelSource).toContain('SOURCE_STRATEGY_OPTIONS');
|
||||
expect(setupCompletionPanelSource).toContain('Source choices');
|
||||
expect(setupCompletionPanelSource).toContain('<ul class="mt-2 space-y-1.5 text-left">');
|
||||
expect(setupCompletionPanelSource).toContain("title: 'Platform API'");
|
||||
expect(setupCompletionPanelSource).toContain("title: 'Pulse Agent'");
|
||||
expect(setupCompletionPanelSource).toContain("title: 'Use both'");
|
||||
|
|
@ -59,6 +60,16 @@ describe('SetupCompletionPanel guardrails', () => {
|
|||
expect(setupCompletionPanelSource).not.toContain('ProxmoxIcon');
|
||||
});
|
||||
|
||||
it('does not present setup guidance as extra credentials or clickable-looking source cards', () => {
|
||||
expect(setupCompletionPanelSource).not.toMatch(
|
||||
/<code[^>]*>\s*\{ADD_INFRASTRUCTURE_PATH\}\s*<\/code>/,
|
||||
);
|
||||
expect(setupCompletionPanelSource).not.toContain('grid gap-2 sm:grid-cols-3');
|
||||
expect(setupCompletionPanelSource).not.toContain(
|
||||
'rounded-md border border-border bg-surface px-3 py-2.5',
|
||||
);
|
||||
});
|
||||
|
||||
it('keeps connected infrastructure classification on the canonical setup model', () => {
|
||||
expect(setupCompletionPanelSource).toContain('buildSetupCompletionConnectedSystems');
|
||||
expect(setupCompletionPanelSource).toContain('buildSetupCompletionViewModel');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue