{'Component-only section'}
, + }], + } as unknown as AdminDefinitionSubSectionSchema} + patchConfig={jest.fn()} + />, + ); + + expect(screen.getByText('Component-only section')).toBeInTheDocument(); + }); + test('should render header text with markdown links', () => { const headerText = 'This is [a link](!https://example.com) in the header'; const props = { @@ -336,6 +358,73 @@ describe('components/admin_console/SchemaAdminSettings', () => { expect(container.textContent).toContain('in the footer'); }); + test('should render a schema footer after all sections', () => { + const props = { + ...DefaultProps, + config, + environmentConfig, + schema: { + id: 'Config', + name: 'config', + header: 'Schema header', + footer: 'Schema footer', + sections: [{ + key: 'section', + title: 'Plugin section', + settings: [], + }], + } as AdminDefinitionSubSectionSchema, + patchConfig: jest.fn(), + }; + + const {container} = renderWithContext(