File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { getConfig } from '@edx/frontend-platform' ;
1+ import { getConfig , setConfig } from '@edx/frontend-platform' ;
22import { cloneDeep } from 'lodash' ;
33import { closestCorners } from '@dnd-kit/core' ;
44import { logError } from '@edx/frontend-platform/logging' ;
@@ -2484,4 +2484,16 @@ describe('<CourseOutline />', () => {
24842484 } ) ;
24852485 expect ( axiosMock . history . delete [ 0 ] . url ) . toBe ( getDownstreamApiUrl ( courseSectionMock . id ) ) ;
24862486 } ) ;
2487+
2488+ it ( 'check that the new status bar and expand bar is shown when flag is set' , async ( ) => {
2489+ setConfig ( {
2490+ ...getConfig ( ) ,
2491+ ENABLE_COURSE_OUTLINE_NEW_DESIGN : 'true' ,
2492+ } ) ;
2493+ renderComponent ( ) ;
2494+ expect ( await screen . findByRole ( 'button' , { name : 'Collapse all' } ) ) . toBeInTheDocument ( ) ;
2495+ expect ( await screen . findByRole ( 'link' , { name : 'View live' } ) ) . toBeInTheDocument ( ) ;
2496+ expect ( await screen . findByRole ( 'button' , { name : 'Add' } ) ) . toBeInTheDocument ( ) ;
2497+ expect ( await screen . findByRole ( 'button' , { name : 'More actions' } ) ) . toBeInTheDocument ( ) ;
2498+ } ) ;
24872499} ) ;
You can’t perform that action at this time.
0 commit comments