import { App } from '@inertiajs/react'; import { renderToStaticMarkup } from 'react-dom/server'; import { expect, test } from 'vitest'; import Requests from '@/pages/stock/requests'; test('production use is available and the stored declared reference is escaped without suggesting external validation', () => { const html = renderToStaticMarkup( ', verification: 'user_supplied', }, }, ], }, health: { lines: [], needs_reservation: false, needs_check: false, unconfirmed_deliveries: 0, delivery_ready: false, }, actions: { canSubmit: false, canReview: false, canDeliver: false, canManageReservation: false, canReceive: false, }, }, ], }, }, }} />, ); expect(html).toContain('value="production"'); expect(html).toContain('Insumos para produção'); expect(html).toContain('Referência declarada: OP-<QA>'); expect(html).not.toContain('OP-'); });