test: align deployment checks with accepted diagnostics and public presentation
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-22 08:59:38 +02:00
parent 7fc4f2569f
commit eada56aa18
14 changed files with 158 additions and 35 deletions
+10 -5
View File
@@ -27,7 +27,10 @@ function load(file, mocks = {}) {
return {
Link: ({ children, ...props }) =>
React.createElement('a', props, children),
usePage: () => ({ url: '/sectores/test', props: { auth: { user: { id: 1 } } } }),
usePage: () => ({
url: '/sectores/test',
props: { auth: { user: { id: 1 } } },
}),
};
if (id.startsWith('.') || id.startsWith('@/')) {
const base = id.startsWith('@/')
@@ -111,7 +114,10 @@ test('demographic comparison retains four saved places and requires a province b
test('the real preparation editor opens an own idea with its budget and no mandatory advert or duplicate reference selector', () => {
const Empty = () => null;
const Editor = load('pages/investor-path/context.tsx', {
'@/components/investment-step-help': { HelpAtStep: Empty, InvestmentHelpGuide: ({ children }) => children },
'@/components/investment-step-help': {
HelpAtStep: Empty,
InvestmentHelpGuide: ({ children }) => children,
},
'@/pages/investment/shared': {
Frame: ({ children }) =>
React.createElement('main', null, children),
@@ -413,11 +419,10 @@ test('demography shows original latest total, period, projection and decision wa
],
};
const html = render('components/demographic-evidence.tsx', { evidence });
assert.match(html, /1 234/);
assert.match(html, /1[\u00a0\u202f ]234/);
assert.match(html, /não demonstram procura ou rentabilidade/);
assert.match(html, /Projecção/);
assert.match(html, /SHA256/);
assert.ok(html.indexOf('SHA256') > html.indexOf('<summary'));
assert.doesNotMatch(html, /SHA256|QA\.xlsx|123abc/);
assert.doesNotMatch(html, /<details[^>]*\bopen/);
});
test('cluster analysis omits empty field blocks but keeps documented evidence and uncertainty', () => {