Entrega dashboard e correccoes transversais preservando Ofertas instalado
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-15 18:56:39 +02:00
parent 1349789226
commit fb076c174f
117 changed files with 10380 additions and 1905 deletions
+20 -5
View File
@@ -193,7 +193,7 @@ void test('small business exploratory draft includes idea and finance without ma
assert.deepEqual(validateSimulationDraft(draft, 'opportunity'), {});
});
void test('project investment evaluation opens a direct project, location, finance, tax and analysis journey', () => {
void test('simple investment preparation separates initial investment and funding and retains the full advanced journey', () => {
const selected = replaceSimulationValue({}, 'journey_type', 'investor');
assert.equal(selected.purpose, 'simulate_only');
const sections = getSimulationSections(selected).map(
@@ -201,14 +201,29 @@ void test('project investment evaluation opens a direct project, location, finan
);
assert.deepEqual(sections, [
'purpose',
'project',
'location',
'market',
'investment',
'financial',
'operating',
'cashflow',
'tax',
'scenarios',
'procedures',
'review',
]);
assert.deepEqual(
getSimulationSections({ ...selected, detail_level: 'advanced' }).map(
(section) => section.id,
),
[
'purpose',
'project',
'location',
'financial',
'tax',
'scenarios',
'procedures',
'review',
],
);
for (const sectionId of [
'project',
'location',