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:
Kamil Gabryjelski
2020-11-04 07:07:21 +01:00
committed by GitHub
parent 1ebeffa104
commit 937f9ca277
11 changed files with 617 additions and 434 deletions

View File

@@ -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);