File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ describe('<LibraryAuthoringPage />', () => {
313
313
expect ( getByText ( 'Content library' ) ) . toBeInTheDocument ( ) ;
314
314
expect ( getByText ( libraryData . title ) ) . toBeInTheDocument ( ) ;
315
315
316
- expect ( getByText ( 'Recently Modified' ) ) . toBeInTheDocument ( ) ;
316
+ await waitFor ( ( ) => { expect ( getByText ( 'Recently Modified' ) ) . toBeInTheDocument ( ) ; } ) ;
317
317
expect ( getByText ( 'Collections (0)' ) ) . toBeInTheDocument ( ) ;
318
318
expect ( getByText ( 'Components (6)' ) ) . toBeInTheDocument ( ) ;
319
319
expect ( getAllByText ( 'Test HTML Block' ) [ 0 ] ) . toBeInTheDocument ( ) ;
@@ -355,11 +355,10 @@ describe('<LibraryAuthoringPage />', () => {
355
355
expect ( getByText ( 'Content library' ) ) . toBeInTheDocument ( ) ;
356
356
expect ( getByText ( libraryData . title ) ) . toBeInTheDocument ( ) ;
357
357
358
- expect ( getByText ( 'Recently Modified' ) ) . toBeInTheDocument ( ) ;
358
+ await waitFor ( ( ) => { expect ( getByText ( 'Recently Modified' ) ) . toBeInTheDocument ( ) ; } ) ;
359
359
expect ( getByText ( 'Collections (0)' ) ) . toBeInTheDocument ( ) ;
360
360
expect ( getByText ( 'Components (2)' ) ) . toBeInTheDocument ( ) ;
361
361
expect ( getAllByText ( 'Test HTML Block' ) [ 0 ] ) . toBeInTheDocument ( ) ;
362
-
363
362
expect ( queryByText ( 'You have not added any content to this library yet.' ) ) . not . toBeInTheDocument ( ) ;
364
363
365
364
// There should not be any "View All" button on page since Components count
You can’t perform that action at this time.
0 commit comments