mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
fix: Explore long URL problem (#18181)
* fix: Explore long URL problem * Fixes lint problems * Fixes default value * Removes duplicated test * Fixes share menu items * Fixes tests * Debounces form_data updates * Rewrites debounce function * Moves history update outside the functional component * Mocks lodash function in tests * Fixes Cypress test * Fixes Cypress test #2
This commit is contained in:
committed by
GitHub
parent
a06e043d7f
commit
4b61c76742
@@ -45,6 +45,7 @@ const createProps = (viz_type = 'sunburst') => ({
|
||||
forceRefresh: jest.fn(),
|
||||
handleToggleFullSize: jest.fn(),
|
||||
toggleExpandSlice: jest.fn(),
|
||||
onExploreChart: jest.fn(),
|
||||
slice: {
|
||||
slice_id: 371,
|
||||
slice_url: '/superset/explore/?form_data=%7B%22slice_id%22%3A%20371%7D',
|
||||
@@ -90,7 +91,7 @@ const createProps = (viz_type = 'sunburst') => ({
|
||||
chartStatus: 'rendered',
|
||||
showControls: true,
|
||||
supersetCanShare: true,
|
||||
formData: {},
|
||||
formData: { slice_id: 1, datasource: '58__table' },
|
||||
});
|
||||
|
||||
test('Should render', () => {
|
||||
|
||||
Reference in New Issue
Block a user