commit compras5 2711
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-27 20:19:21 +02:00
parent 7486007fcf
commit d58b75c87a
57 changed files with 2803 additions and 116 deletions
+29 -1
View File
@@ -105,7 +105,31 @@ test('long review report preserves all proposals, original amounts and finance v
qualification: null,
opening: null,
award: null,
order: null,
order: {
id: 1,
number: 'OC-PARCELA-1',
currency: 'MZN',
total_minor: 4000,
},
orders: [
{
id: 1,
number: 'OC-PARCELA-1',
currency: 'MZN',
total_minor: 4000,
origins: [{ id: 42, number: 'REQ-SINTETICA-42' }],
},
{
id: 2,
number: 'OC-PARCELA-2',
currency: 'MZN',
total_minor: 6000,
origins: [
{ id: 42, number: 'REQ-SINTETICA-42' },
{ id: 43, number: 'REQ-SINTETICA-43' },
],
},
],
fulfilment: {
receipts: [],
finance_visible: false,
@@ -116,6 +140,10 @@ test('long review report preserves all proposals, original amounts and finance v
const html = render(ReviewReport, { report }, 'review');
for (const row of rows) expect(html).toContain(row.reference);
expect(html).toContain('report-fulfilment');
expect(html).toContain('OC-PARCELA-1');
expect(html).toContain('OC-PARCELA-2');
expect(html).toContain('REQ-SINTETICA-43');
expect(html).toContain('sem repartição neste relatório');
expect(html).not.toContain('QA-FACTURA-PRIVADA');
});
test('improvement report preserves details on every visible row without changing their disclosure state', () => {