test: align deployment checks with accepted diagnostics and public presentation
tests / ci (push) Waiting to run
tests / ci (push) Waiting to run
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user