Simplify provisioning operation details (Refs #86)

This commit is contained in:
2026-10-09 12:17:35 -04:00
parent c443ffa0dc
commit 56b4043b6e
4 changed files with 60 additions and 41 deletions
+1 -2
View File
@@ -330,7 +330,7 @@ describe('provisioning outcome and evidence presentation', () => {
});
const body = render(ProvisioningProgressView, { props: { detail, hostHistoryHref: '/hosts/operations?server=test&returnTo=%2Fprovisioning%2Foperation-a' } }).body;
const commandStep = body.slice(body.indexOf('Create instance through host agent'), body.indexOf('Verify readiness'));
for (const value of ['Remote response uncertain', detail.progress.command!.message, 'agent-command-a', 'Agent disconnected', 'View host operation history']) {
for (const value of ['Remote response uncertain', detail.progress.command!.message, 'Agent disconnected', 'View host operation history']) {
expect(commandStep).toContain(value);
expect(body.split(value)).toHaveLength(2);
}
@@ -357,7 +357,6 @@ describe('provisioning outcome and evidence presentation', () => {
detail.agentOperation = { id: 'legacy-agent-command', hostId: 'host-a', state: 'failed', createdAt: at, updatedAt: at, error: 'Command failed on host' };
const body = render(ProvisioningProgressView, { props: { detail } }).body;
expect(body).toContain('Detailed checkpoints were not recorded');
expect(body).toContain('legacy-agent-command');
expect(body).toContain('Command failed on host');
expect(body).toContain('Stopped here');
expect(body).not.toContain('Verify readiness');