Merge pull request #24164 from overleaf/ds-group-discount-10-percent-february

Group plans - Reintroduce 10% discount for group plans (Part 1, 2 & 3 Combined)

GitOrigin-RevId: f3a59a65bbd300cc06f70e179e794c32ed7970ce
This commit is contained in:
Davinder Singh
2025-03-11 09:05:50 +00:00
committed by Copybot
parent 1ea577ef12
commit 7ec4cbd841
11 changed files with 288 additions and 283 deletions
@@ -322,7 +322,7 @@ describe('<ChangePlanModal />', function () {
const standardPlanCollaboratorText = '10 collaborators per project'
const professionalPlanCollaboratorText = 'Unlimited collaborators'
const educationInputLabel =
'40% educational discountI confirm this subscription is for educational purposes (applies to students or faculty using Overleaf for teaching)'
'Get a total of 40% off for groups using Overleaf for teaching'
let modal: HTMLElement
async function openModal() {
@@ -368,15 +368,14 @@ describe('<ChangePlanModal />', function () {
expect(sizeSelect.value).to.equal('10')
const sizeOption = within(sizeSelect).getAllByRole('option')
expect(sizeOption.length).to.equal(groupPlans.sizes.length)
within(modal).getByText('40% educational discount')
within(modal).getByText(
'Get a total of 40% off for groups using Overleaf for teaching'
)
const educationalCheckbox = within(modal).getByRole(
'checkbox'
) as HTMLInputElement
expect(educationalCheckbox.checked).to.be.false
within(modal).getByText(
'I confirm this subscription is for educational purposes (applies to students or faculty using Overleaf for teaching)'
)
within(modal).getByText(
'Your new subscription will be billed immediately to your current payment method.'