File tree 1 file changed +6
-5
lines changed
src/courseware/course/sequence
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,12 @@ describe('Sequence', () => {
103
103
{ store : testStore , wrapWithRouter : true } ,
104
104
) ;
105
105
106
- await waitFor ( ( ) => expect ( screen . queryByText ( 'Loading locked content messaging...' ) ) . toBeInTheDocument ( ) ) ;
107
- // `Previous`, `Next`, `Prerequisite` and `Close Tray` buttons.
108
- expect ( screen . getAllByRole ( 'button' ) . length ) . toEqual ( 4 ) ;
109
- // `Active` button.
110
- expect ( screen . getAllByRole ( 'tab' ) . length ) . toEqual ( 1 ) ;
106
+ waitFor ( ( ) => {
107
+ expect ( screen . queryByText ( 'Loading locked content messaging...' ) ) . toBeInTheDocument ( ) ;
108
+ // `Previous`, `Prerequisite` and `Close Tray` buttons.
109
+ expect ( screen . getAllByRole ( 'button' ) . length ) . toEqual ( 3 ) ;
110
+ // `Next` button.
111
+ expect ( screen . getAllByRole ( 'link' ) . length ) . toEqual ( 1 ) ;
111
112
112
113
expect ( screen . getByText ( 'Content Locked' ) ) . toBeInTheDocument ( ) ;
113
114
const unitContainer = container . querySelector ( '.unit-container' ) ;
You can’t perform that action at this time.
0 commit comments