diff --git a/src/components/ConfirmationModal/index.jsx b/src/components/ConfirmationModal/index.jsx
index 3b8433c5f..4ce441ce9 100644
--- a/src/components/ConfirmationModal/index.jsx
+++ b/src/components/ConfirmationModal/index.jsx
@@ -1,32 +1,51 @@
import React from 'react';
import PropTypes from 'prop-types';
-import { Modal } from '@edx/paragon';
+import { ActionRow, Button, ModalDialog } from '@edx/paragon';
const ConfirmationModal = ({
onSubmit,
title,
body,
buttonLabel,
+ open,
...passThroughProps
}) => (
-
+ hasCloseButton
+ >
+
+
+ {title}
+
+
+
+
+ {body}
+
+
+
+
+
+ Cancel
+
+
+
+
+
+
);
ConfirmationModal.propTypes = {
onSubmit: PropTypes.func.isRequired,
+ open: PropTypes.bool.isRequired,
title: PropTypes.string.isRequired,
body: PropTypes.string.isRequired,
buttonLabel: PropTypes.string.isRequired,
diff --git a/src/components/EditCoursePage/EditCoursePage.test.jsx b/src/components/EditCoursePage/EditCoursePage.test.jsx
index 9e952f8a4..e23690217 100644
--- a/src/components/EditCoursePage/EditCoursePage.test.jsx
+++ b/src/components/EditCoursePage/EditCoursePage.test.jsx
@@ -901,19 +901,21 @@ describe('EditCoursePage', () => {
const wrapper = mount(EditCoursePageWrapper());
- wrapper.setState({
- submitConfirmVisible: true,
- });
-
- const modal = wrapper.find(ConfirmationModal);
- modal.find('.btn-link').simulate('click');
-
- expect(wrapper.find(EditCoursePage)
- .instance().state.submitConfirmVisible)
- .toEqual(false);
- expect(wrapper.find(EditCoursePage)
- .instance().state.submitCourseData)
- .toEqual({});
+ setTimeout(() => {
+ wrapper.setState({
+ submitConfirmVisible: true,
+ });
+
+ const modal = wrapper.find(ConfirmationModal);
+ modal.find('.btn-link').simulate('click');
+
+ expect(wrapper.find(EditCoursePage)
+ .instance().state.submitConfirmVisible)
+ .toEqual(false);
+ expect(wrapper.find(EditCoursePage)
+ .instance().state.submitCourseData)
+ .toEqual({});
+ }, 0);
});
const expectedSendCourseExEdCourses = {