@@ -245,14 +245,11 @@ describe('<LegacyLibMigrationPage />', () => {
245245 await user . click ( nextButton ) ;
246246 const alert = await screen . findByRole ( 'alert' ) ;
247247 expect ( await within ( alert ) . findByText (
248- / A l l c o n t e n t f r o m t h e 1 l e g a c y l i b r a r y y o u s e l e c t e d w i l l b e m i g r a t e d t o / i,
249- ) ) . toBeInTheDocument ( ) ;
250- expect ( await within ( alert ) . findByText (
251- / t e s t l i b r a r y 1 / i,
248+ / A l l c o n t e n t f r o m t h e l e g a c y l i b r a r y y o u s e l e c t e d w i l l b e m i g r a t e d t o t h e C o n t e n t L i b r a r y y o u s e l e c t / i,
252249 ) ) . toBeInTheDocument ( ) ;
253250
254251 const backButton = screen . getByRole ( 'button' , { name : / b a c k / i } ) ;
255- backButton . click ( ) ;
252+ await user . click ( backButton ) ;
256253
257254 expect ( await screen . findByText ( 'Test Library 1' ) ) . toBeInTheDocument ( ) ;
258255 // The selected v2 library remains checked
@@ -357,10 +354,7 @@ describe('<LegacyLibMigrationPage />', () => {
357354 // Should show alert of ConfirmationView
358355 const alert = await screen . findByRole ( 'alert' ) ;
359356 expect ( await within ( alert ) . findByText (
360- / A l l c o n t e n t f r o m t h e 3 l e g a c y l i b r a r i e s y o u s e l e c t e d w i l l b e m i g r a t e d t o / i,
361- ) ) . toBeInTheDocument ( ) ;
362- expect ( await within ( alert ) . findByText (
363- / t e s t l i b r a r y 1 / i,
357+ / A l l c o n t e n t f r o m t h e 3 l e g a c y l i b r a r i e s y o u s e l e c t e d w i l l b e m i g r a t e d t o t h e C o n t e n t L i b r a r y y o u s e l e c t / i,
364358 ) ) . toBeInTheDocument ( ) ;
365359 expect ( screen . getByText ( 'MBA' ) ) . toBeInTheDocument ( ) ;
366360 expect ( screen . getByText ( 'Legacy library 1' ) ) . toBeInTheDocument ( ) ;
@@ -417,11 +411,7 @@ describe('<LegacyLibMigrationPage />', () => {
417411 // Should show alert of ConfirmationView
418412 const alert = await screen . findByRole ( 'alert' ) ;
419413 expect ( await within ( alert ) . findByText (
420- / A l l c o n t e n t f r o m t h e 3 l e g a c y l i b r a r i e s y o u s e l e c t e d w i l l b e m i g r a t e d t o / i,
421- { exact : false } ,
422- ) ) . toBeInTheDocument ( ) ;
423- expect ( await within ( alert ) . findByText (
424- / t e s t l i b r a r y 1 / i,
414+ / A l l c o n t e n t f r o m t h e 3 l e g a c y l i b r a r i e s y o u s e l e c t e d w i l l b e m i g r a t e d t o t h e C o n t e n t L i b r a r y y o u s e l e c t / i,
425415 { exact : false } ,
426416 ) ) . toBeInTheDocument ( ) ;
427417 expect ( screen . getByText ( 'MBA' ) ) . toBeInTheDocument ( ) ;
0 commit comments