Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ describe('TableControlBar', () => {
const rolesButton = screen.getByText('Select Roles');
expect(rolesButton).toBeInTheDocument();
await user.click(rolesButton);
const superAdminOption = screen.getByRole('checkbox', { name: /Super Admin/i });
expect(superAdminOption).toBeInTheDocument();
await user.click(superAdminOption);
const courseAdminOption = screen.getByRole('checkbox', { name: /Course Admin/i });
expect(courseAdminOption).toBeInTheDocument();
await user.click(courseAdminOption);
expect(contextWithRolesFilter.columns[0].setFilter).toHaveBeenCalled();
});

Expand Down
13 changes: 0 additions & 13 deletions src/authz-module/components/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@ import { Language, LibraryBooks, School } from '@openedx/paragon/icons';
import messages from './messages';

export const getRolesFiltersOptions = (intl: IntlShape) => [
{
groupName: intl.formatMessage(messages['authz.team.members.table.group.global']),
groupIcon: Language,
displayName: 'Super Admin',
value: 'super_admin',
},
{
groupName: intl.formatMessage(messages['authz.team.members.table.group.global']),
groupIcon: Language,
displayName: 'Global Staff',
value: 'global_staff',
},

{
groupName: intl.formatMessage(messages['authz.team.members.table.group.courses']),
groupIcon: School,
Expand Down
5 changes: 0 additions & 5 deletions src/authz-module/components/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ const messages = defineMessages({
defaultMessage: 'Libraries',
description: 'Label for the "Libraries" group in the team members table filters',
},
'authz.team.members.table.group.global': {
id: 'authz.team.members.table.group.global',
defaultMessage: 'Global',
description: 'Label for the "Global" group in the team members table filters',
},
'authz.table.controlbar.filters.more.results': {
id: 'authz.table.controlbar.filters.more.results',
defaultMessage: 'Search to show more',
Expand Down