Merge pull request #13482 from overleaf/ab-group-settings-page

[web] Group settings button and page enabled based on env var

GitOrigin-RevId: 77574a3705b3f1301935b72010022af61f7fe552
This commit is contained in:
Alexandre Bourdin
2023-07-17 10:41:41 +00:00
committed by Copybot
parent c4db2fa4ca
commit 39bc601826
9 changed files with 63 additions and 0 deletions
@@ -158,6 +158,10 @@ describe('SubscriptionController', function () {
recordEventForSession: sinon.stub(),
setUserPropertyForUser: sinon.stub(),
}),
'../../../../modules/managed-users/app/src/ManagedUsersManager':
(this.ManagedUsersManager = {
hasManagedUsersFeature: sinon.stub(),
}),
},
})
@@ -482,6 +486,10 @@ describe('SubscriptionController', function () {
it('should load the plans', function () {
expect(this.data.plans).to.deep.equal(this.plans)
})
it('should load an empty list of groups with settings available', function () {
expect(this.data.groupSettingsEnabledFor).to.deep.equal([])
})
})
describe('createSubscription', function () {