hazirlik ozetinde belge sorumlularini goster
This commit is contained in:
@@ -24,6 +24,13 @@ test('document revision and vault failures invalidate a previously verified save
|
||||
assert.ok(preparationSummary({...tender,bidDraft:draft},{...vault,documents:[{...file,boyut:21}]},now).documentIssues.some(text=>text.includes('değişti')));
|
||||
assert.ok(preparationSummary({...tender,bidDraft:draft},{...vault,error:'offline'},now).documentIssues.some(text=>text.includes('doğrulanamadı')));
|
||||
});
|
||||
test('preparation summary exposes document owners without hiding unassigned work',()=>{
|
||||
const doc={document:'Yetki belgesi'};
|
||||
const assigned={manualDocuments:[doc],checks:{documents:{[documentKey(doc)]:{owner:' Uyum ekibi '}}}};
|
||||
const missing={manualDocuments:[doc],checks:{documents:{}}};
|
||||
assert.deepEqual(preparationSummary({...tender,bidDraft:assigned},vault,now).documentOwners,[{document:'Yetki belgesi',owner:'Uyum ekibi'}]);
|
||||
assert.deepEqual(preparationSummary({...tender,bidDraft:missing},vault,now).documentOwners,[{document:'Yetki belgesi',owner:'Atanmadı'}]);
|
||||
});
|
||||
test('expired source takes priority over completion or manually moved Kanban status',()=>{
|
||||
const summary=preparationSummary({...tender,tarih:'01.09.2026',kanbanStatus:'teklif_verildi'},vault,now);
|
||||
assert.match(summary.next.text,/zamanı geçti/);
|
||||
|
||||
Reference in New Issue
Block a user