Add automatic contextual help to adaptive investment stages
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-17 08:55:48 +02:00
parent b60c231ddc
commit e11b5592c7
10 changed files with 2532 additions and 1762 deletions
+2 -1
View File
@@ -27,7 +27,7 @@ function load(file, mocks = {}) {
return {
Link: ({ children, ...props }) =>
React.createElement('a', props, children),
usePage: () => ({ url: '/sectores/test' }),
usePage: () => ({ url: '/sectores/test', props: { auth: { user: { id: 1 } } } }),
};
if (id.startsWith('.') || id.startsWith('@/')) {
const base = id.startsWith('@/')
@@ -111,6 +111,7 @@ 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 },
'@/pages/investment/shared': {
Frame: ({ children }) =>
React.createElement('main', null, children),