Skip to content

Commit 4d96908

Browse files
committed
Add changeset
1 parent 07abb56 commit 4d96908

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.changeset/dull-plums-sleep.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@clerk/localizations': minor
3+
'@clerk/clerk-js': minor
4+
'@clerk/shared': minor
5+
'@clerk/ui': minor
6+
---
7+
8+
Display "Single Sign-on (SSO)" section in `OrganizationProfile` if self-serve SSO is enabled on the current active organization

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('ConfigureSSO', () => {
3636
f.withOrganizations();
3737
f.withUser({
3838
email_addresses: ['test@clerk.com'],
39-
organization_memberships: [{ name: 'Org1', permissions: ['org:sys_enterprise_connections:manage'] }],
39+
organization_memberships: [{ name: 'Org1', permissions: ['org:sys_entconns:manage'] }],
4040
});
4141
});
4242

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ describe('OrganizationProfile', () => {
494494
});
495495

496496
render(<OrganizationProfile />, { wrapper });
497-
expect(await screen.findByText('Self-Serve SSO')).toBeDefined();
497+
expect(await screen.findByText('Single Sign-On (SSO)')).toBeDefined();
498498
});
499499

500500
it('does not include SSO when disabled at the instance level', async () => {
@@ -514,7 +514,7 @@ describe('OrganizationProfile', () => {
514514
});
515515

516516
const { queryByText } = render(<OrganizationProfile />, { wrapper });
517-
await waitFor(() => expect(queryByText('Self-Serve SSO')).toBeNull());
517+
await waitFor(() => expect(queryByText('Single Sign-On (SSO)')).toBeNull());
518518
});
519519

520520
it('does not include SSO when the org has not opted in, even if the instance has it enabled', async () => {
@@ -534,7 +534,7 @@ describe('OrganizationProfile', () => {
534534
});
535535

536536
const { queryByText } = render(<OrganizationProfile />, { wrapper });
537-
await waitFor(() => expect(queryByText('Self-Serve SSO')).toBeNull());
537+
await waitFor(() => expect(queryByText('Single Sign-On (SSO)')).toBeNull());
538538
});
539539

540540
it('includes SSO even when the user does not have the manage enterprise connections permission', async () => {
@@ -555,7 +555,7 @@ describe('OrganizationProfile', () => {
555555

556556
// TODO -> Add assertions for page content warning
557557
render(<OrganizationProfile />, { wrapper });
558-
expect(await screen.findByText('Self-Serve SSO')).toBeDefined();
558+
expect(await screen.findByText('Single Sign-On (SSO)')).toBeDefined();
559559
});
560560
});
561561

0 commit comments

Comments
 (0)