File tree Expand file tree Collapse file tree 5 files changed +4
-32
lines changed Expand file tree Collapse file tree 5 files changed +4
-32
lines changed Original file line number Diff line number Diff line change @@ -709,12 +709,6 @@ describe('<CourseUnit />', () => {
709
709
userEvent . click ( problemButton ) ;
710
710
} ) ;
711
711
712
- await waitFor ( ( ) => {
713
- expect ( screen . getByRole ( 'heading' , {
714
- name : new RegExp ( `${ addComponentMessages . blockEditorModalTitle . defaultMessage } ` , 'i' ) ,
715
- } ) ) . toBeInTheDocument ( ) ;
716
- } ) ;
717
-
718
712
axiosMock
719
713
. onGet ( getCourseUnitApiUrl ( blockId ) )
720
714
. reply ( 200 , courseUnitIndexMock ) ;
Original file line number Diff line number Diff line change @@ -252,13 +252,7 @@ const AddComponent = ({
252
252
/>
253
253
</ div >
254
254
</ StandardModal >
255
- < StandardModal
256
- title = { intl . formatMessage ( messages . blockEditorModalTitle ) }
257
- isOpen = { isXBlockEditorModalOpen }
258
- onClose = { closeXBlockEditorModal }
259
- isOverflowVisible = { false }
260
- size = "xl"
261
- >
255
+ { isXBlockEditorModalOpen && (
262
256
< div className = "editor-page" >
263
257
< EditorPage
264
258
courseId = { courseId }
@@ -271,7 +265,7 @@ const AddComponent = ({
271
265
returnFunction = { /* istanbul ignore next */ ( ) => onXBlockSave }
272
266
/>
273
267
</ div >
274
- </ StandardModal >
268
+ ) }
275
269
</ div >
276
270
) ;
277
271
}
Original file line number Diff line number Diff line change @@ -36,11 +36,6 @@ const messages = defineMessages({
36
36
defaultMessage : 'Select video' ,
37
37
description : 'Video picker modal title.' ,
38
38
} ,
39
- blockEditorModalTitle : {
40
- id : 'course-authoring.course-unit.modal.block-editor-title.text' ,
41
- defaultMessage : 'Edit component' ,
42
- description : 'Block editor modal title.' ,
43
- } ,
44
39
modalContainerTitle : {
45
40
id : 'course-authoring.course-unit.modal.container.title' ,
46
41
defaultMessage : 'Add {componentTitle} component' ,
Original file line number Diff line number Diff line change @@ -218,13 +218,7 @@ const XBlockContainerIframe: FC<XBlockContainerIframeProps> = ({
218
218
/>
219
219
</ div >
220
220
</ StandardModal >
221
- < StandardModal
222
- title = { intl . formatMessage ( messages . blockEditorModalTitle ) }
223
- isOpen = { isXBlockEditorModalOpen }
224
- onClose = { closeXBlockEditorModal }
225
- isOverflowVisible = { false }
226
- size = "xl"
227
- >
221
+ { isXBlockEditorModalOpen && (
228
222
< div className = "editor-page" >
229
223
< EditorPage
230
224
courseId = { courseId }
@@ -237,7 +231,7 @@ const XBlockContainerIframe: FC<XBlockContainerIframeProps> = ({
237
231
returnFunction = { /* istanbul ignore next */ ( ) => onXBlockSave }
238
232
/>
239
233
</ div >
240
- </ StandardModal >
234
+ ) }
241
235
{ Object . keys ( accessManagedXBlockData ) . length ? (
242
236
< ConfigureModal
243
237
isXBlockComponent
Original file line number Diff line number Diff line change @@ -19,11 +19,6 @@ const messages = defineMessages({
19
19
id : 'course-authoring.course-unit.xblock.video-editor.title' ,
20
20
defaultMessage : 'Select video' ,
21
21
} ,
22
- blockEditorModalTitle : {
23
- id : 'course-authoring.course-unit.xblock.editor.title' ,
24
- defaultMessage : 'Edit component' ,
25
- description : 'Block editor modal title.' ,
26
- } ,
27
22
} ) ;
28
23
29
24
export default messages ;
You can’t perform that action at this time.
0 commit comments