@@ -183,7 +183,6 @@ describe('<CourseUnit />', () => {
183183 it ( 'render CourseUnit component correctly' , async ( ) => {
184184 setConfig ( {
185185 ...getConfig ( ) ,
186- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
187186 } ) ;
188187 render ( < RootWrapper /> ) ;
189188 const currentSectionName = courseSectionVerticalMock . xblock_info . ancestor_info . ancestors [ 1 ] . display_name ;
@@ -278,7 +277,6 @@ describe('<CourseUnit />', () => {
278277 it ( 'closes legacy edit modal and updates course unit sidebar after saveEditedXBlockData message' , async ( ) => {
279278 setConfig ( {
280279 ...getConfig ( ) ,
281- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
282280 } ) ;
283281 render ( < RootWrapper /> ) ;
284282
@@ -319,7 +317,6 @@ describe('<CourseUnit />', () => {
319317 it ( 'updates course unit sidebar after receiving refreshPositions message' , async ( ) => {
320318 setConfig ( {
321319 ...getConfig ( ) ,
322- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
323320 } ) ;
324321 render ( < RootWrapper /> ) ;
325322
@@ -356,7 +353,6 @@ describe('<CourseUnit />', () => {
356353 const user = userEvent . setup ( ) ;
357354 setConfig ( {
358355 ...getConfig ( ) ,
359- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
360356 } ) ;
361357 render ( < RootWrapper /> ) ;
362358
@@ -532,7 +528,6 @@ describe('<CourseUnit />', () => {
532528 it ( 'checks if xblock is a duplicate when the corresponding duplicate button is clicked and if the sidebar status is updated' , async ( ) => {
533529 setConfig ( {
534530 ...getConfig ( ) ,
535- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
536531 } ) ;
537532 axiosMock
538533 . onGet ( getCourseSectionVerticalApiUrl ( blockId ) )
@@ -1153,7 +1148,6 @@ describe('<CourseUnit />', () => {
11531148 it ( 'renders course unit details for a draft with unpublished changes' , async ( ) => {
11541149 setConfig ( {
11551150 ...getConfig ( ) ,
1156- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
11571151 } ) ;
11581152 render ( < RootWrapper /> ) ;
11591153
@@ -1233,7 +1227,6 @@ describe('<CourseUnit />', () => {
12331227 const user = userEvent . setup ( ) ;
12341228 setConfig ( {
12351229 ...getConfig ( ) ,
1236- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
12371230 } ) ;
12381231 render ( < RootWrapper /> ) ;
12391232 const courseUnitSidebar = await screen . findByTestId ( 'course-unit-sidebar' ) ;
@@ -1329,7 +1322,6 @@ describe('<CourseUnit />', () => {
13291322 const user = userEvent . setup ( ) ;
13301323 setConfig ( {
13311324 ...getConfig ( ) ,
1332- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
13331325 } ) ;
13341326 render ( < RootWrapper /> ) ;
13351327 let courseUnitSidebar ;
@@ -1385,7 +1377,6 @@ describe('<CourseUnit />', () => {
13851377 const user = userEvent . setup ( ) ;
13861378 setConfig ( {
13871379 ...getConfig ( ) ,
1388- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
13891380 } ) ;
13901381 render ( < RootWrapper /> ) ;
13911382 let courseUnitSidebar ;
@@ -1464,7 +1455,6 @@ describe('<CourseUnit />', () => {
14641455 it ( 'should toggle visibility from header configure modal and update course unit state accordingly' , async ( ) => {
14651456 setConfig ( {
14661457 ...getConfig ( ) ,
1467- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
14681458 } ) ;
14691459 const user = userEvent . setup ( ) ;
14701460 render ( < RootWrapper /> ) ;
@@ -1568,7 +1558,6 @@ describe('<CourseUnit />', () => {
15681558 beforeEach ( ( ) => {
15691559 setConfig ( {
15701560 ...getConfig ( ) ,
1571- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
15721561 } ) ;
15731562 } ) ;
15741563
@@ -2371,15 +2360,13 @@ describe('<CourseUnit />', () => {
23712360 it ( 'should display visibility modal correctly' , async ( ) => {
23722361 setConfig ( {
23732362 ...getConfig ( ) ,
2374- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
23752363 } ) ;
23762364 await checkRenderVisibilityModal ( 'libraryContentAccess' ) ;
23772365 } ) ;
23782366
23792367 it ( 'opens legacy edit modal on edit button click' , async ( ) => {
23802368 setConfig ( {
23812369 ...getConfig ( ) ,
2382- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
23832370 } ) ;
23842371 await checkLegacyEditModalOnEditMessage ( ) ;
23852372 } ) ;
@@ -2391,7 +2378,6 @@ describe('<CourseUnit />', () => {
23912378 beforeEach ( async ( ) => {
23922379 setConfig ( {
23932380 ...getConfig ( ) ,
2394- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
23952381 } ) ;
23962382 axiosMock
23972383 . onGet ( getCourseSectionVerticalApiUrl ( blockId ) )
@@ -2586,7 +2572,6 @@ describe('<CourseUnit />', () => {
25862572 setConfig ( {
25872573 ...getConfig ( ) ,
25882574 ENABLE_TAGGING_TAXONOMY_PAGES : 'true' ,
2589- ENABLE_UNIT_PAGE_NEW_DESIGN : false ,
25902575 } ) ;
25912576 render ( < RootWrapper /> ) ;
25922577
@@ -2632,7 +2617,6 @@ describe('<CourseUnit />', () => {
26322617 it ( 'renders new unit info/settings sidebar' , async ( ) => {
26332618 setConfig ( {
26342619 ...getConfig ( ) ,
2635- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
26362620 } ) ;
26372621 const user = userEvent . setup ( ) ;
26382622 render ( < RootWrapper /> ) ;
@@ -2660,7 +2644,6 @@ describe('<CourseUnit />', () => {
26602644 it ( 'displays the live state in the status bar' , async ( ) => {
26612645 setConfig ( {
26622646 ...getConfig ( ) ,
2663- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
26642647 } ) ;
26652648 axiosMock
26662649 . onGet ( getCourseSectionVerticalApiUrl ( blockId ) )
@@ -2679,7 +2662,6 @@ describe('<CourseUnit />', () => {
26792662 it ( 'should change the visibility of the unit in the settings sidebar' , async ( ) => {
26802663 setConfig ( {
26812664 ...getConfig ( ) ,
2682- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
26832665 } ) ;
26842666 const user = userEvent . setup ( ) ;
26852667 render ( < RootWrapper /> ) ;
@@ -2756,7 +2738,6 @@ describe('<CourseUnit />', () => {
27562738 it ( 'displays the staff only state in the status bar' , async ( ) => {
27572739 setConfig ( {
27582740 ...getConfig ( ) ,
2759- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
27602741 } ) ;
27612742
27622743 axiosMock
@@ -2780,7 +2761,6 @@ describe('<CourseUnit />', () => {
27802761 const user = userEvent . setup ( ) ;
27812762 setConfig ( {
27822763 ...getConfig ( ) ,
2783- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
27842764 } ) ;
27852765 render ( < RootWrapper /> ) ;
27862766
@@ -2829,7 +2809,6 @@ describe('<CourseUnit />', () => {
28292809
28302810 setConfig ( {
28312811 ...getConfig ( ) ,
2832- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
28332812 } ) ;
28342813 render ( < RootWrapper /> ) ;
28352814
@@ -2908,7 +2887,6 @@ describe('<CourseUnit />', () => {
29082887 it ( 'should one group in the visibility field in the unit sidebar' , async ( ) => {
29092888 setConfig ( {
29102889 ...getConfig ( ) ,
2911- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
29122890 } ) ;
29132891 render ( < RootWrapper /> ) ;
29142892
@@ -2963,7 +2941,6 @@ describe('<CourseUnit />', () => {
29632941 it ( 'should multiple groups in the visibility field in the unit sidebar' , async ( ) => {
29642942 setConfig ( {
29652943 ...getConfig ( ) ,
2966- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
29672944 } ) ;
29682945 render ( < RootWrapper /> ) ;
29692946
@@ -3023,7 +3000,6 @@ describe('<CourseUnit />', () => {
30233000 it ( 'should render never published state in the unit sidebar' , async ( ) => {
30243001 setConfig ( {
30253002 ...getConfig ( ) ,
3026- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
30273003 } ) ;
30283004 render ( < RootWrapper /> ) ;
30293005
@@ -3053,7 +3029,6 @@ describe('<CourseUnit />', () => {
30533029 it ( 'displays the scheduled state in the status bar' , async ( ) => {
30543030 setConfig ( {
30553031 ...getConfig ( ) ,
3056- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
30573032 } ) ;
30583033 axiosMock
30593034 . onGet ( getCourseSectionVerticalApiUrl ( blockId ) )
@@ -3073,7 +3048,6 @@ describe('<CourseUnit />', () => {
30733048 it ( 'displays the draft changes state in the status bar' , async ( ) => {
30743049 setConfig ( {
30753050 ...getConfig ( ) ,
3076- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
30773051 } ) ;
30783052 axiosMock
30793053 . onGet ( getCourseSectionVerticalApiUrl ( blockId ) )
@@ -3093,7 +3067,6 @@ describe('<CourseUnit />', () => {
30933067 it ( 'displays discussions enabled label in the status bar' , async ( ) => {
30943068 setConfig ( {
30953069 ...getConfig ( ) ,
3096- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
30973070 } ) ;
30983071 axiosMock
30993072 . onGet ( getCourseSectionVerticalApiUrl ( blockId ) )
@@ -3112,7 +3085,6 @@ describe('<CourseUnit />', () => {
31123085 it ( 'displays group access with one group in the status bar' , async ( ) => {
31133086 setConfig ( {
31143087 ...getConfig ( ) ,
3115- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
31163088 } ) ;
31173089 axiosMock
31183090 . onGet ( getCourseSectionVerticalApiUrl ( blockId ) )
@@ -3159,7 +3131,6 @@ describe('<CourseUnit />', () => {
31593131 it ( 'displays group access with multiple groups in the status bar' , async ( ) => {
31603132 setConfig ( {
31613133 ...getConfig ( ) ,
3162- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
31633134 } ) ;
31643135 axiosMock
31653136 . onGet ( getCourseSectionVerticalApiUrl ( blockId ) )
@@ -3207,7 +3178,6 @@ describe('<CourseUnit />', () => {
32073178 setConfig ( {
32083179 ...getConfig ( ) ,
32093180 ENABLE_TAGGING_TAXONOMY_PAGES : 'true' ,
3210- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
32113181 } ) ;
32123182
32133183 render ( < RootWrapper /> ) ;
@@ -3240,7 +3210,6 @@ describe('<CourseUnit />', () => {
32403210 beforeEach ( async ( ) => {
32413211 setConfig ( {
32423212 ...getConfig ( ) ,
3243- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
32443213 } ) ;
32453214
32463215 // The Meilisearch client-side API uses fetch, not Axios.
@@ -3495,7 +3464,6 @@ describe('<CourseUnit />', () => {
34953464 it ( 'not render add sidebar in units from libraries (read-only)' , async ( ) => {
34963465 setConfig ( {
34973466 ...getConfig ( ) ,
3498- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
34993467 } ) ;
35003468 render ( < RootWrapper /> ) ;
35013469
@@ -3531,7 +3499,6 @@ describe('<CourseUnit />', () => {
35313499 it ( 'opens the component info sidebar on postMessage event' , async ( ) => {
35323500 setConfig ( {
35333501 ...getConfig ( ) ,
3534- ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' ,
35353502 } ) ;
35363503
35373504 axiosMock
@@ -3561,7 +3528,6 @@ describe('<CourseUnit />', () => {
35613528
35623529 // eslint-disable-next-line @typescript-eslint/no-explicit-any
35633530 const renderComponentSidebar = async ( data : any = componentData ) => {
3564- setConfig ( { ...getConfig ( ) , ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' } ) ;
35653531 axiosMock . onGet ( getXBlockApiUrl ( componentId ) ) . reply ( 200 , data ) ;
35663532 render ( < RootWrapper /> ) ;
35673533 await screen . findByTitle ( xblockContainerIframeMessages . xblockIframeTitle . defaultMessage ) ;
@@ -3700,7 +3666,6 @@ describe('<CourseUnit />', () => {
37003666
37013667 // eslint-disable-next-line @typescript-eslint/no-explicit-any
37023668 const renderUnitInfoSidebar = async ( itemData : any = unitItemData ) => {
3703- setConfig ( { ...getConfig ( ) , ENABLE_UNIT_PAGE_NEW_DESIGN : 'true' } ) ;
37043669 axiosMock . onGet ( getXBlockApiUrl ( unitId ) ) . reply ( 200 , itemData ) ;
37053670 render ( < RootWrapper /> ) ;
37063671 // Wait for the Details tab which is unique to the new unit info sidebar
0 commit comments