File tree Expand file tree Collapse file tree
plugins/course-apps/proctoring Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -471,9 +471,8 @@ describe('ProctoredExamSettings', () => {
471471 screen . getByDisplayValue ( 'mockproc' ) ;
472472 } ) ;
473473 // (1) for studio settings
474- // (2) waffle flags
475- // (3) for course details
476- expect ( axiosMock . history . get . length ) . toBe ( 3 ) ;
474+ // (2) for course details
475+ expect ( axiosMock . history . get . length ) . toBe ( 2 ) ;
477476 expect ( axiosMock . history . get [ 0 ] . url . includes ( 'proctored_exam_settings' ) ) . toEqual ( true ) ;
478477 } ) ;
479478
Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ describe('header utils', () => {
188188 const actualItemsTitle = actualItems . map ( ( item ) => item . title ) ;
189189 expect ( actualItemsTitle ) . toContain ( messages [ 'header.links.updates' ] . defaultMessage ) ;
190190 } ) ;
191- it ( 'when useNewUpdatesPage is false should use legacy studio URL for updates' , ( ) => {
192- mockWaffleFlags ( { enableAuthzCourseAuthoring : false , useNewUpdatesPage : false } ) ;
191+ it ( 'should always use MFE URL for updates' , ( ) => {
192+ mockWaffleFlags ( { enableAuthzCourseAuthoring : false } ) ;
193193 jest . mocked ( useCourseUserPermissions ) . mockReturnValue ( {
194194 isLoading : false ,
195195 isAuthzEnabled : false ,
@@ -201,7 +201,7 @@ describe('header utils', () => {
201201 const actualItems =
202202 renderHook ( ( ) => useContentMenuItems ( 'course-123' ) , { wrapper : createWrapper ( ) } ) . result . current ;
203203 const updatesItem = actualItems . find ( ( item ) => item . title === messages [ 'header.links.updates' ] . defaultMessage ) ;
204- expect ( updatesItem ?. href ) . toContain ( '/course_info /course-123' ) ;
204+ expect ( updatesItem ?. href ) . toContain ( '/course /course-123/course_info ' ) ;
205205 } ) ;
206206 it ( 'when authz enabled and user has canViewPagesAndResources should include pages and resources option' , async ( ) => {
207207 mockWaffleFlags ( { enableAuthzCourseAuthoring : true } ) ;
You can’t perform that action at this time.
0 commit comments