Merge pull request #23547 from overleaf/ii-flexible-group-licensing-error-assist-2

[web] Hide flexible licensing buttons for pending plans (fix)

GitOrigin-RevId: ce5b4ce4138ed7a029b840a87c5498227e3204f4
This commit is contained in:
ilkin-overleaf
2025-02-13 09:04:57 +00:00
committed by Copybot
parent 9f438f0805
commit bebc32b11d
9 changed files with 85 additions and 12 deletions
@@ -81,6 +81,11 @@ describe('UserMembershipController', function () {
},
getAssignment: sinon.stub().yields(null, { variant: 'default' }),
}
this.RecurlyClient = {
promises: {
getSubscription: sinon.stub().resolves({}),
},
}
this.UserMembershipController = await esmock.strict(modulePath, {
'../../../../app/src/Features/UserMembership/UserMembershipErrors': {
UserIsManagerError,
@@ -93,6 +98,8 @@ describe('UserMembershipController', function () {
this.SplitTestHandler,
'../../../../app/src/Features/UserMembership/UserMembershipHandler':
this.UserMembershipHandler,
'../../../../app/src/Features/Subscription/RecurlyClient':
this.RecurlyClient,
'@overleaf/settings': this.Settings,
'../../../../app/src/models/SSOConfig': { SSOConfig: this.SSOConfig },
})