mirror of
https://github.com/apache/superset.git
synced 2026-04-14 05:34:38 +00:00
refactor: Replace react-bootstrap dialogs with Antd dialogs (#11527)
* Refactor Dialogs in dashboard properties modal * Refactor Dialogs in explore properties modal * Refactor dialogs in DatasourceModal * Refactor dialogs in ExploreResultsButton * Remove react-bootstrap-dialog from ExploreCtasResultsButton * Remove react-bootstrap-dialog dependency * Remove unnecessary functions from Modal * Bump antd version to fix a bug * Fix unit tests * Fix e2e test * Change antd version to 4.5.4 to fix tests * Reenable all tests in control * Another version bump to fix tests
This commit is contained in:
committed by
GitHub
parent
1ebeffa104
commit
937f9ca277
@@ -97,7 +97,9 @@ describe('DatasourceModal', () => {
|
||||
});
|
||||
await waitForComponentToPaint(wrapper);
|
||||
act(() => {
|
||||
const okButton = wrapper.find('[className="btn btn-sm btn-primary"]');
|
||||
const okButton = wrapper.find(
|
||||
'.ant-modal-confirm .ant-modal-confirm-btns .ant-btn-primary',
|
||||
);
|
||||
okButton.simulate('click');
|
||||
});
|
||||
await waitForComponentToPaint(wrapper);
|
||||
|
||||
Reference in New Issue
Block a user