@@ -314,21 +314,21 @@ describe('<LibraryAuthoringPage />', () => {
314314 expect ( screen . queryByText ( '(Never Published)' ) ) . not . toBeInTheDocument ( ) ;
315315 } ) ;
316316
317- it ( 'should show "Manage Access" button in Library Info that opens the Library Team modal' , async ( ) => {
317+ it ( 'should show Library Team button in Library Info that opens the Library Team modal' , async ( ) => {
318318 await renderLibraryPage ( ) ;
319- const manageAccess = screen . getByRole ( 'button' , { name : / m a n a g e a c c e s s / i } ) ;
319+ const manageAccess = await screen . findByRole ( 'button' , { name : / L i b r a r y T e a m / i } ) ;
320320
321321 expect ( manageAccess ) . not . toBeDisabled ( ) ;
322322 fireEvent . click ( manageAccess ) ;
323323
324- expect ( await screen . findByText ( ' Library Team') ) . toBeInTheDocument ( ) ;
324+ expect ( await screen . findByRole ( 'heading' , { name : ' Library Team' } ) ) . toBeInTheDocument ( ) ;
325325 } ) ;
326326
327- it ( 'should not show "Manage Access " button in Library Info to users who cannot edit the library' , async ( ) => {
327+ it ( 'should not show "Library Team " button in Library Info to users who cannot edit the library' , async ( ) => {
328328 const libraryId = mockContentLibrary . libraryIdReadOnly ;
329329 render ( < LibraryLayout /> , { path, params : { libraryId } } ) ;
330330
331- const manageAccess = screen . queryByRole ( 'button' , { name : / m a n a g e a c c e s s / i } ) ;
331+ const manageAccess = screen . queryByRole ( 'button' , { name : / L i b r a r y T e a m / i } ) ;
332332 expect ( manageAccess ) . not . toBeInTheDocument ( ) ;
333333 } ) ;
334334
0 commit comments