Skip to content

Commit

Permalink
fix(clerk-js): Update to new permission names
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef committed Oct 13, 2023
1 parent 1a8af3f commit 45248f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,8 @@ describe('OrganizationMembers', () => {
total_count: 2,
}),
);
const { queryByText, getByRole } = render(<OrganizationMembers />, { wrapper });
await waitFor(async () => {
await userEvent.click(getByRole('tab', { name: 'Invitations' }));
});
const { queryByText, findByRole } = render(<OrganizationMembers />, { wrapper });
await userEvent.click(await findByRole('tab', { name: 'Invitations' }));
expect(fixtures.clerk.organization?.getInvitations).toHaveBeenCalled();
expect(queryByText('[email protected]')).toBeInTheDocument();
expect(queryByText('Admin')).toBeInTheDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,6 @@ const NotificationCountBadgeManageButton = withGate(
},
{
// if the user is not able to accept a request we should not notify them
permission: 'org:memberships:manage',
permission: 'org:sys_memberships:manage',
},
);
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ const NotificationCountBadgeSwitcherTrigger = withGate(
},
{
// if the user is not able to accept a request we should not notify them
permission: 'org:memberships:manage',
permission: 'org:sys_memberships:manage',
},
);

0 comments on commit 45248f5

Please sign in to comment.