import { App, router } from '@inertiajs/react'; import { renderToStaticMarkup } from 'react-dom/server'; import { afterEach, expect, test, vi } from 'vitest'; import Evaluation from '@/pages/suppliers/evaluation'; afterEach(() => vi.restoreAllMocks()); const payload = { title: 'Avaliação QA', nature: 'goods', scope: 'Âmbito sintético.', period_start: '2026-11-28', period_end: '2026-11-28', order_ids: [], criteria: [], conclusion: 'Conclusão original.', critical_occurrences: '', critical_evidence: '', }; const identity = 'procurement-preparations:4:7:procurement.internal:procurement:supplier-evaluation:1:3'; function render( kind: 'evidence' | 'decision', actor = 7, tenant = 4, context = 'procurement.internal', version = 3, reportOnly = false, ) { return renderToStaticMarkup( , ); } test.each(['evidence', 'decision'] as const)( '%s navigation targets only present focusable sections and preserves report boundaries', (kind) => { for (const reportOnly of [false, true]) { const html = render( kind, 7, 4, 'procurement.internal', 3, reportOnly, ); const navigation = html.match( /