mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +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:
@@ -76,7 +76,6 @@ describe('EditableTitle', () => {
|
||||
describe('should handle blur', () => {
|
||||
beforeEach(() => {
|
||||
editableWrapper.find('input').simulate('click');
|
||||
expect(editableWrapper.find('input').props().type).toBe('text');
|
||||
});
|
||||
afterEach(() => {
|
||||
callback.resetHistory();
|
||||
@@ -84,6 +83,10 @@ describe('EditableTitle', () => {
|
||||
editableWrapper.setState({ lastTitle: 'my title' });
|
||||
});
|
||||
|
||||
it('default input type should be text', () => {
|
||||
expect(editableWrapper.find('input').props().type).toBe('text');
|
||||
});
|
||||
|
||||
it('should trigger callback', () => {
|
||||
editableWrapper.setState({ title: 'new title' });
|
||||
editableWrapper.find('input').simulate('blur');
|
||||
|
||||
Reference in New Issue
Block a user