feat(qa): integrate financial example, growth, dividends and detailed declarations

This commit is contained in:
2026-11-20 14:59:36 +02:00
parent b2cfa93945
commit 9c34af0406
13 changed files with 1532 additions and 54 deletions
@@ -226,7 +226,7 @@ void test('partial years, changing product schedules and negative cash keep exac
assert.equal(displayReportMoney('-1234567.89'), '-1 234 567,89');
});
void test('dossier print and Word exports include the same seven statements, escape labels and split wide tables', async () => {
void test('dossier print and Word exports include the seven statements and approved ratios, escape labels and split wide tables', async () => {
const input = plan(13);
input.products[0].label = '<script>não executar</script>';
const report = createProjectDossierReport(
@@ -239,7 +239,7 @@ void test('dossier print and Word exports include the same seven statements, esc
generatedAt: '2026-11-20T12:00:00Z',
},
);
assert.equal(report.sections[0].tables.length, 7);
assert.equal(report.sections[0].tables.length, 8);
const html = await createProjectDossierPrintHtml(report, []);
assert.match(html, /Balanço Projectado/);
assert.match(html, /&lt;script&gt;/);