diff --git a/src/header/hooks.test.ts b/src/header/hooks.test.ts index 28fc53c249..e16da5aaa6 100644 --- a/src/header/hooks.test.ts +++ b/src/header/hooks.test.ts @@ -143,7 +143,7 @@ describe('header utils', () => { describe('useLibrarySettingsMenuItems', () => { it('should contain team access url', () => { const items = renderHook(() => useLibrarySettingsMenuItems('library-123', false)).result.current; - expect(items).toContainEqual({ title: 'Team Access', href: 'http://localhost/?sa=manage-team' }); + expect(items).toContainEqual({ title: 'Library Team', href: 'http://localhost/?sa=manage-team' }); }); it('should contain admin console url if set', () => { setConfig({ @@ -152,7 +152,7 @@ describe('header utils', () => { }); const items = renderHook(() => useLibrarySettingsMenuItems('library-123', false)).result.current; expect(items).toContainEqual({ - title: 'Team Access', + title: 'Library Team', href: 'http://admin-console.com/authz/libraries/library-123', }); }); @@ -163,7 +163,7 @@ describe('header utils', () => { }); const items = renderHook(() => useLibrarySettingsMenuItems('library-123', true)).result.current; expect(items).toContainEqual({ - title: 'Team Access', + title: 'Library Team', href: 'http://admin-console.com/authz/libraries/library-123', }); }); diff --git a/src/header/messages.ts b/src/header/messages.ts index d1bb89a7b4..cdd4cd6548 100644 --- a/src/header/messages.ts +++ b/src/header/messages.ts @@ -113,7 +113,7 @@ const messages = defineMessages({ }, 'header.menu.teamAccess': { id: 'header.links.teamAccess', - defaultMessage: 'Team Access', + defaultMessage: 'Library Team', description: 'Menu item to open team access popup', }, 'header.links.optimizer': { diff --git a/src/library-authoring/LibraryAuthoringPage.test.tsx b/src/library-authoring/LibraryAuthoringPage.test.tsx index 01b2419231..61bf28bc48 100644 --- a/src/library-authoring/LibraryAuthoringPage.test.tsx +++ b/src/library-authoring/LibraryAuthoringPage.test.tsx @@ -314,21 +314,21 @@ describe('', () => { expect(screen.queryByText('(Never Published)')).not.toBeInTheDocument(); }); - it('should show "Manage Access" button in Library Info that opens the Library Team modal', async () => { + it('should show Library Team button in Library Info that opens the Library Team modal', async () => { await renderLibraryPage(); - const manageAccess = screen.getByRole('button', { name: /manage access/i }); + const manageAccess = await screen.findByRole('button', { name: /Library Team/i }); expect(manageAccess).not.toBeDisabled(); fireEvent.click(manageAccess); - expect(await screen.findByText('Library Team')).toBeInTheDocument(); + expect(await screen.findByRole('heading', { name: 'Library Team' })).toBeInTheDocument(); }); - it('should not show "Manage Access" button in Library Info to users who cannot edit the library', async () => { + it('should not show "Library Team" button in Library Info to users who cannot edit the library', async () => { const libraryId = mockContentLibrary.libraryIdReadOnly; render(, { path, params: { libraryId } }); - const manageAccess = screen.queryByRole('button', { name: /manage access/i }); + const manageAccess = screen.queryByRole('button', { name: /Library Team/i }); expect(manageAccess).not.toBeInTheDocument(); }); diff --git a/src/library-authoring/library-info/LibraryInfo.test.tsx b/src/library-authoring/library-info/LibraryInfo.test.tsx index e7239c7033..0971d5d051 100644 --- a/src/library-authoring/library-info/LibraryInfo.test.tsx +++ b/src/library-authoring/library-info/LibraryInfo.test.tsx @@ -276,7 +276,7 @@ describe('', () => { const ADMIN_CONSOLE_URL = 'http://localhost:2025/admin-console'; mergeConfig({ ADMIN_CONSOLE_URL }); render(); - const manageTeam = await screen.getByText('Manage Access'); + const manageTeam = await screen.findByText('Library Team'); expect(manageTeam).toBeInTheDocument(); expect(manageTeam).toHaveAttribute('href', `${ADMIN_CONSOLE_URL}/authz/libraries/${libraryData.id}`); }); diff --git a/src/library-authoring/library-info/messages.ts b/src/library-authoring/library-info/messages.ts index 30f56009fa..75e3b46f4b 100644 --- a/src/library-authoring/library-info/messages.ts +++ b/src/library-authoring/library-info/messages.ts @@ -13,7 +13,7 @@ const messages = defineMessages({ }, libraryTeamButtonTitle: { id: 'course-authoring.library-authoring.sidebar.info.library-team.button.title', - defaultMessage: 'Manage Access', + defaultMessage: 'Library Team', description: 'Title to use for the button that allows viewing/editing the Library Team user access.', }, libraryHistorySectionTitle: {