mirror of
https://github.com/apache/superset.git
synced 2026-04-25 19:14:27 +00:00
fix(sqllab): Invisible grid table due to the invalid height (#34683)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { type ReactChild } from 'react';
|
||||
import {
|
||||
render,
|
||||
screen,
|
||||
@@ -45,6 +46,13 @@ jest.mock('src/components/ErrorMessage', () => ({
|
||||
ErrorMessageWithStackTrace: () => <div data-test="error-message">Error</div>,
|
||||
}));
|
||||
|
||||
jest.mock(
|
||||
'react-virtualized-auto-sizer',
|
||||
() =>
|
||||
({ children }: { children: (params: { height: number }) => ReactChild }) =>
|
||||
children({ height: 500 }),
|
||||
);
|
||||
|
||||
const mockedProps = {
|
||||
cache: true,
|
||||
queryId: queries[0].id,
|
||||
|
||||
Reference in New Issue
Block a user