Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
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.
18 lines
703 B
TypeScript
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);
|
|
});
|
|
});
|