Merge pull request #32033 from overleaf/ii-project-sharing-admin-page

[web] Sharing permissions group admin page

GitOrigin-RevId: 97baeeca9ca33cec043badcae2affdd954081ef2
This commit is contained in:
ilkin-overleaf
2026-03-19 09:06:35 +00:00
committed by Copybot
parent d61413e57d
commit 32095c092b
7 changed files with 105 additions and 11 deletions
@@ -208,6 +208,48 @@ describe('<ManagedGroupSubscriptions />', function () {
await screen.findAllByText('Audit logs')
})
it('does not render the Sharing Permissions settings row when the user is not the group admin', function () {
renderWithSubscriptionDashContext(<ManagedGroupSubscriptions />, {
metaTags: [
{
name: 'ol-managedGroupSubscriptions',
value: managedGroupSubscriptions2,
},
{
name: 'ol-groupSettingsEnabledFor',
value: [],
},
{
name: 'ol-splitTestVariants',
value: { 'sharing-updates': 'enabled' },
},
],
})
expect(screen.queryByText(/sharing permissions/i)).to.be.null
expect(screen.queryByText(/manage how group members share projects/i)).to.be
.null
})
it('renders the Sharing Permissions settings row when the user is the group admin and plan is professional', async function () {
renderWithSubscriptionDashContext(<ManagedGroupSubscriptions />, {
metaTags: [
{
name: 'ol-managedGroupSubscriptions',
value: managedGroupSubscriptions,
},
{ name: 'ol-usersEmail', value: 'you@example.com' },
{
name: 'ol-splitTestVariants',
value: { 'sharing-updates': 'enabled' },
},
],
})
await screen.findAllByText(/sharing permissions/i)
await screen.findAllByText(/manage how group members share projects/i)
})
it('renders Managed Group / Group SSO settings row when both features are turned on', async function () {
renderWithSubscriptionDashContext(<ManagedGroupSubscriptions />, {
metaTags: [