mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
chore: Use queryEditorId in SqlEditor child components (#21650)
This commit is contained in:
@@ -24,7 +24,7 @@ import { Store } from 'redux';
|
||||
import { render, fireEvent, waitFor } from 'spec/helpers/testing-library';
|
||||
import { initialState, defaultQueryEditor } from 'src/SqlLab/fixtures';
|
||||
import RunQueryActionButton, {
|
||||
Props,
|
||||
RunQueryActionButtonProps,
|
||||
} from 'src/SqlLab/components/RunQueryActionButton';
|
||||
|
||||
const middlewares = [thunk];
|
||||
@@ -51,7 +51,7 @@ const defaultProps = {
|
||||
overlayCreateAsMenu: null,
|
||||
};
|
||||
|
||||
const setup = (props?: Partial<Props>, store?: Store) =>
|
||||
const setup = (props?: Partial<RunQueryActionButtonProps>, store?: Store) =>
|
||||
render(<RunQueryActionButton {...defaultProps} {...props} />, {
|
||||
useRedux: true,
|
||||
...(store && { store }),
|
||||
|
||||
Reference in New Issue
Block a user