diff --git a/src/legacy-libraries-migration/ConfirmationView.tsx b/src/legacy-libraries-migration/ConfirmationView.tsx index 99acf23c33..270940d7e4 100644 --- a/src/legacy-libraries-migration/ConfirmationView.tsx +++ b/src/legacy-libraries-migration/ConfirmationView.tsx @@ -74,7 +74,6 @@ export const ConfirmationView = ({ {...messages.confirmationViewAlert} values={{ count: legacyLibraries.length, - libraryName: destination.title, b: BoldText, }} /> diff --git a/src/legacy-libraries-migration/LegacyLibMigrationPage.test.tsx b/src/legacy-libraries-migration/LegacyLibMigrationPage.test.tsx index dea7ab7ef1..418e7f88ec 100644 --- a/src/legacy-libraries-migration/LegacyLibMigrationPage.test.tsx +++ b/src/legacy-libraries-migration/LegacyLibMigrationPage.test.tsx @@ -245,14 +245,11 @@ describe('', () => { await user.click(nextButton); const alert = await screen.findByRole('alert'); expect(await within(alert).findByText( - /All content from the 1 legacy library you selected will be migrated to/i, - )).toBeInTheDocument(); - expect(await within(alert).findByText( - /test library 1/i, + /All content from the legacy library you selected will be migrated to the Content Library you select/i, )).toBeInTheDocument(); const backButton = screen.getByRole('button', { name: /back/i }); - backButton.click(); + await user.click(backButton); expect(await screen.findByText('Test Library 1')).toBeInTheDocument(); // The selected v2 library remains checked @@ -357,10 +354,7 @@ describe('', () => { // Should show alert of ConfirmationView const alert = await screen.findByRole('alert'); expect(await within(alert).findByText( - /All content from the 3 legacy libraries you selected will be migrated to/i, - )).toBeInTheDocument(); - expect(await within(alert).findByText( - /test library 1/i, + /All content from the 3 legacy libraries you selected will be migrated to the Content Library you select/i, )).toBeInTheDocument(); expect(screen.getByText('MBA')).toBeInTheDocument(); expect(screen.getByText('Legacy library 1')).toBeInTheDocument(); @@ -417,11 +411,7 @@ describe('', () => { // Should show alert of ConfirmationView const alert = await screen.findByRole('alert'); expect(await within(alert).findByText( - /All content from the 3 legacy libraries you selected will be migrated to /i, - { exact: false }, - )).toBeInTheDocument(); - expect(await within(alert).findByText( - /test library 1/i, + /All content from the 3 legacy libraries you selected will be migrated to the Content Library you select/i, { exact: false }, )).toBeInTheDocument(); expect(screen.getByText('MBA')).toBeInTheDocument(); diff --git a/src/legacy-libraries-migration/messages.ts b/src/legacy-libraries-migration/messages.ts index eaf1a2168b..d93ed8dadd 100644 --- a/src/legacy-libraries-migration/messages.ts +++ b/src/legacy-libraries-migration/messages.ts @@ -64,7 +64,7 @@ const messages = defineMessages({ selectDestinationAlert: { id: 'legacy-libraries-migration.select-destination.alert.text', defaultMessage: 'All content from the' - + ' {count, plural, one {{count} legacy library} other {{count} legacy libraries}} you selected will' + + ' {count, plural, one {legacy library} other {{count} legacy libraries}} you selected will' + ' be migrated to this new library, organized into collections. Legacy library content used in courses will' + ' continue to work as-is. To receive any future changes to migrated content, you must update these' + ' references within your course.', @@ -73,8 +73,8 @@ const messages = defineMessages({ confirmationViewAlert: { id: 'legacy-libraries-migration.select-destination.alert.text', defaultMessage: 'All content from the' - + ' {count, plural, one {{count} legacy library} other {{count} legacy libraries}} you selected will' - + ' be migrated to {libraryName}, organized into collections. Legacy library content used in courses will' + + ' {count, plural, one {legacy library} other {{count} legacy libraries}} you selected will' + + ' be migrated to the Content Library you select, organized into collections. Legacy library content used in courses will' + ' continue to work as-is. To receive any future changes to migrated content, you must update these' + ' references within your course.', description: 'Alert text in the confirmation step of the legacy libraries migration page.',