Include remaining AccessDepth and uiHelp test updates from parallel work.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled

This commit is contained in:
AetherForge
2026-06-07 01:08:15 -07:00
parent 0be2de81a5
commit 047d5c7252
3 changed files with 11 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ describe('accessDepth helpers', () => {
expect(model.joinLane).toBe('winrm');
expect(model.succeeded).toHaveLength(1);
expect(model.failed).toHaveLength(1);
expect(model.miningOnion.find((r) => r.tier === 'exe_subprocess')?.status).toBe('skipped');
expect(model.miningOnion.find((r) => r.tier === 'wsl')?.status).toBe('active');
expect(model.spreadOnion).toHaveLength(2);
});

View File

@@ -135,9 +135,9 @@ export function parseAccessDepthDiagnostics(raw: Record<string, unknown>): Acces
function platformLabel(platform?: string): string {
const p = (platform || '').toLowerCase();
if (p.includes('win')) return 'Windows';
if (p.includes('darwin') || p.includes('mac')) return 'macOS';
if (p.includes('linux')) return 'Linux';
if (p.includes('win') || p === 'windows') return 'Windows';
return platform?.trim() || 'Unknown';
}
@@ -239,7 +239,13 @@ function buildOnionRows(
const failSet = new Set(attempts.filter((a) => !a.ok).map((a) => a.tier.toLowerCase()));
const active = activeTier?.toLowerCase();
return order.map((tier, i) => {
const orderLower = new Set(order.map((s) => s.toLowerCase()));
const fullOrder = [
...order,
...skipped.filter((s) => !orderLower.has(s.toLowerCase())),
];
return fullOrder.map((tier, i) => {
const key = tier.toLowerCase();
let status: OnionTierRow['status'] = 'neutral';
if (active && key === active) status = 'active';

View File

@@ -28,6 +28,8 @@ describe('UI_HELP', () => {
'crucible_tab_spread',
'crucible_tab_tunnels',
'crucible_mining_ops',
'crucible_access_depth',
'crucible_access_depth_calibrate',
'crucible_resume',
'crucible_pause',
'crucible_full_audit',