graceguo-supercat commented on a change in pull request #6013: [Sqllab] Add 
offline state to sqllab
URL: 
https://github.com/apache/incubator-superset/pull/6013#discussion_r226414217
 
 

 ##########
 File path: superset/assets/spec/javascripts/sqllab/TabbedSqlEditors_spec.jsx
 ##########
 @@ -166,4 +166,9 @@ describe('TabbedSqlEditors', () => {
     const lastTab = wrapper.find(Tab).last();
     expect(lastTab.props().eventKey).toContain('add_tab');
   });
+  it('should disable new tab when offline', () => {
+    wrapper = getWrapper();
+    wrapper.setProps({ offline: true });
 
 Review comment:
   before `.setProps`, can you add an expect that `disabled` props 
`toBe(false)`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to