mirror of
https://github.com/apache/superset.git
synced 2026-06-01 21:59:26 +00:00
perf(explore): virtualized datasource field sections (#27625)
This commit is contained in:
@@ -30,6 +30,17 @@ import {
|
||||
import { DatasourceType } from '@superset-ui/core';
|
||||
import DatasourceControl from 'src/explore/components/controls/DatasourceControl';
|
||||
|
||||
jest.mock(
|
||||
'react-virtualized-auto-sizer',
|
||||
() =>
|
||||
({
|
||||
children,
|
||||
}: {
|
||||
children: (params: { height: number }) => React.ReactChild;
|
||||
}) =>
|
||||
children({ height: 500 }),
|
||||
);
|
||||
|
||||
const datasource: IDatasource = {
|
||||
id: 1,
|
||||
type: DatasourceType.Table,
|
||||
@@ -69,6 +80,7 @@ const props: DatasourcePanelProps = {
|
||||
actions: {
|
||||
setControlValue: jest.fn(),
|
||||
},
|
||||
width: 300,
|
||||
};
|
||||
|
||||
const search = (value: string, input: HTMLElement) => {
|
||||
|
||||
Reference in New Issue
Block a user