mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
[Sqllab] Add offline state to sqllab (#6013)
* add timeout and refresh for failed backend * show offline state instead of refreshing * add southpane tests
This commit is contained in:
@@ -166,4 +166,10 @@ describe('TabbedSqlEditors', () => {
|
||||
const lastTab = wrapper.find(Tab).last();
|
||||
expect(lastTab.props().eventKey).toContain('add_tab');
|
||||
});
|
||||
it('should disable new tab when offline', () => {
|
||||
wrapper = getWrapper();
|
||||
expect(wrapper.find(Tab).last().props().disabled).toBe(false);
|
||||
wrapper.setProps({ offline: true });
|
||||
expect(wrapper.find(Tab).last().props().disabled).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user