Files
AetherForge/server/web/src/components/Layout/Layout.nav.test.ts
AetherForge e1b1a2aa65
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Make Website Scanner discoverable in sidebar nav.
Deploy Recon was wired at /deploy-recon but buried at the bottom of a non-scrolling sidebar under an opaque label; move it after Crucible, rename to Website Scanner, enable nav scroll, and add route/nav smoke tests plus README.
2026-06-07 18:23:18 -07:00

18 lines
703 B
TypeScript

import { describe, expect, it } from 'vitest';
import { operatorNavItems } from './Layout';
describe('operator sidebar nav', () => {
it('includes Website Scanner linking to /deploy-recon', () => {
const item = operatorNavItems.find((i) => i.to === '/deploy-recon');
expect(item).toBeDefined();
expect(item!.label).toBe('Website Scanner');
expect(item!.icon).toBe('recon');
});
it('places Website Scanner directly after Crucible for discoverability', () => {
const scannerIdx = operatorNavItems.findIndex((i) => i.to === '/deploy-recon');
const crucibleIdx = operatorNavItems.findIndex((i) => i.to === '/crucible');
expect(scannerIdx).toBe(crucibleIdx + 1);
});
});