graceguo-supercat opened a new pull request #11632:
URL: https://github.com/apache/incubator-superset/pull/11632
### SUMMARY
Fix a js unit test error introduced by #11614
Error message is:
```
FAIL spec/javascripts/datasource/DatasourceModal_spec.jsx (20.829 s)
● DatasourceModal › saves on confirm
Method “simulate” is meant to be run on 1 node. 0 found instead.
101 | '.ant-modal-confirm .ant-modal-confirm-btns
.ant-btn-primary',
102 | );
> 103 | okButton.simulate('click');
| ^
104 | });
105 | await waitForComponentToPaint(wrapper);
106 | const expected = ['http://localhost/datasource/save/'];
at ReactWrapper.single
(node_modules/enzyme/src/ReactWrapper.js:1166:13)
at ReactWrapper.simulate
(node_modules/enzyme/src/ReactWrapper.js:665:17)
at spec/javascripts/datasource/DatasourceModal_spec.jsx:103:16
at batchedUpdates$1
(node_modules/react-dom/cjs/react-dom.development.js:21887:12)
at act
(node_modules/react-dom/cjs/react-dom-test-utils.development.js:929:14)
at Object.<anonymous>
(spec/javascripts/datasource/DatasourceModal_spec.jsx:99:5)
```
### TEST PLAN
CI
### ADDITIONAL INFORMATION
<!--- Check any relevant boxes with "x" -->
<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
- [ ] Has associated issue: #11614
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]