Skip to content

Commit 065a45b

Browse files
committed
Add changeset
1 parent 4100906 commit 065a45b

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

.changeset/some-donkeys-dress.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
'@clerk/ui': patch
4+
---
5+
6+
Allow creating additional memberships on unlimited `environment.organizationSettings.maxAllowedMemberships`

packages/ui/src/components/OrganizationSwitcher/__tests__/OrganizationSwitcher.test.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -291,23 +291,6 @@ describe('OrganizationSwitcher', () => {
291291
expect(getByText('Org2')).toBeInTheDocument();
292292
});
293293

294-
it('does not allow creating organization if not allowed to create additional membership', async () => {
295-
const { wrapper, props } = await createFixtures(f => {
296-
f.withOrganizations();
297-
f.withMaxAllowedMemberships({ max: 1 });
298-
f.withUser({
299-
email_addresses: ['[email protected]'],
300-
create_organization_enabled: true,
301-
organization_memberships: [{ name: 'Org1', id: '1', role: 'admin' }],
302-
});
303-
});
304-
305-
props.setProps({ hidePersonal: true });
306-
const { queryByText, getByRole, userEvent } = render(<OrganizationSwitcher />, { wrapper });
307-
await userEvent.click(getByRole('button', { name: 'Open organization switcher' }));
308-
expect(queryByText('Create organization')).not.toBeInTheDocument();
309-
});
310-
311294
it('does not allow creating organization if max allowed memberships is reached', async () => {
312295
const { wrapper, props } = await createFixtures(f => {
313296
f.withOrganizations();

0 commit comments

Comments
 (0)