Merge pull request #22578 from overleaf/ii-fl-add-seats-upgrade-plan-link

[web] Add seats "Upgrade my plan" link

GitOrigin-RevId: 7c72101be6b22feee9e3fb2ec119336e0e092ca9
This commit is contained in:
ilkin-overleaf
2024-12-18 13:35:22 +02:00
committed by Copybot
parent 7a48061d31
commit 48c0aaf940
5 changed files with 44 additions and 15 deletions
@@ -109,6 +109,10 @@ describe('SubscriptionGroupController', function () {
this.SubscriptionModel = { Subscription: {} }
this.PlansHelper = {
isProfessionalGroupPlan: sinon.stub().returns(false),
}
this.Controller = await esmock.strict(modulePath, {
'../../../../app/src/Features/Subscription/SubscriptionGroupHandler':
this.SubscriptionGroupHandler,
@@ -130,6 +134,7 @@ describe('SubscriptionGroupController', function () {
this.SubscriptionController,
'../../../../app/src/Features/Subscription/RecurlyClient':
this.RecurlyClient,
'../../../../app/src/Features/Subscription/PlansHelper': this.PlansHelper,
'../../../../app/src/models/Subscription': this.SubscriptionModel,
'@overleaf/logger': {
err: sinon.stub(),
@@ -335,6 +340,7 @@ describe('SubscriptionGroupController', function () {
props.subscriptionId.should.equal(this.subscriptionId)
props.groupName.should.equal(this.subscription.teamName)
props.totalLicenses.should.equal(this.subscription.membersLimit)
props.isProfessional.should.equal(false)
done()
},
}