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
@@ -12,6 +12,43 @@ import {
searchProcurementMenu,
} from '@/lib/procurement-menu-search';
test('common payment attribution retains its existing authorised finance menu entry', () => {
const path = '/afectacoes-fornecedores/12/imputacao';
expect(
activeProcurementEntry(
procurementNavigation(
['finance'],
true,
undefined,
false,
false,
false,
false,
{ payments: true },
),
path,
),
).toBe('supplier_settlements');
expect(
activeProcurementEntry(procurementNavigation(['finance'], true), path),
).toBeUndefined();
expect(
activeProcurementEntry(
procurementNavigation(
['requester'],
false,
undefined,
false,
false,
false,
false,
{ payments: true },
),
path,
),
).toBeUndefined();
});
test.each([
'/compras/fornecimento',
'/compras/fornecimento?view=agreements&record_id=12',