This commit is contained in:
@@ -74,7 +74,6 @@ export const ConfirmationView = ({
|
||||
{...messages.confirmationViewAlert}
|
||||
values={{
|
||||
count: legacyLibraries.length,
|
||||
libraryName: destination.title,
|
||||
b: BoldText,
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -245,14 +245,11 @@ describe('<LegacyLibMigrationPage />', () => {
|
||||
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('<LegacyLibMigrationPage />', () => {
|
||||
// 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('<LegacyLibMigrationPage />', () => {
|
||||
// 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();
|
||||
|
||||
@@ -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 <b>{libraryName}</b>, 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.',
|
||||
|
||||
Reference in New Issue
Block a user