mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat(viz): add query mode switch to table chart (#10113)
1, Replace table chart rendering from jquery.DataTables to react-table: apache-superset/superset-ui#623 2. Rearrange the control panel, replace GROUP BY and NOT GROUP BY with a "Query Mode" switch: apache-superset/superset-ui#609
This commit is contained in:
@@ -22,13 +22,13 @@ import exploreReducer from 'src/explore/reducers/exploreReducer';
|
||||
import * as actions from 'src/explore/actions/exploreActions';
|
||||
|
||||
describe('reducers', () => {
|
||||
it('sets correct control value given a key and value', () => {
|
||||
it('sets correct control value given an arbitrary key and value', () => {
|
||||
const newState = exploreReducer(
|
||||
defaultState,
|
||||
actions.setControlValue('x_axis_label', 'x', []),
|
||||
actions.setControlValue('NEW_FIELD', 'x', []),
|
||||
);
|
||||
expect(newState.controls.x_axis_label.value).toBe('x');
|
||||
expect(newState.form_data.x_axis_label).toBe('x');
|
||||
expect(newState.controls.NEW_FIELD.value).toBe('x');
|
||||
expect(newState.form_data.NEW_FIELD).toBe('x');
|
||||
});
|
||||
it('setControlValue works as expected with a checkbox', () => {
|
||||
const newState = exploreReducer(
|
||||
|
||||
Reference in New Issue
Block a user