commit compras5 2911
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-29 19:49:19 +02:00
parent a935499d64
commit 96b30368bc
96 changed files with 3397 additions and 111 deletions
@@ -3,6 +3,27 @@ import { describe, expect, it } from 'vitest';
import { ProcurementPaymentInsights } from '../../resources/js/components/procurement-payment-insights';
describe('confirmed payment expense', () => {
it('describes one confirmed payment in the singular without changing the exact amount', () => {
const html = renderToStaticMarkup(
<ProcurementPaymentInsights
data={{
from: null,
to: null,
coverage: {
invoices: 1,
indeterminate: 0,
confirmed_payments: 1,
},
currencies: [
{ currency: 'MZN', count: 1, amount_minor: '4000' },
],
}}
/>,
);
expect(html).toContain('1 pagamento confirmado.');
expect(html).toContain('40,00 MZN');
expect(html).not.toContain('1 pagamentos');
});
it('shows supplier identity with exact totals and preserves filters in its independent pagination', () => {
const html = renderToStaticMarkup(
<ProcurementPaymentInsights