From 4edaafe98ec4be3cb531cad201664e9c9e04dea1 Mon Sep 17 00:00:00 2001 From: Simon Gardner Date: Tue, 19 Aug 2025 12:36:43 +0100 Subject: [PATCH] Merge pull request #27995 from overleaf/slg-license-allocated-text-2 [web] change text for 1 license GitOrigin-RevId: 4bb7527c39b587830aa40018f28c60abb3238ff0 --- services/web/locales/en.json | 2 +- .../group-management/components/group-members.spec.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 0ed0d45667..ba6a92358c 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -2725,7 +2725,7 @@ "you_dont_have_any_repositories": "You don’t have any repositories", "you_have_0_free_suggestions_left": "You have 0 free suggestions left", "you_have_1_free_suggestion_left": "You have 1 free suggestion left", - "you_have_1_license_and_your_plan_supports_up_to_y": "You have 1 license and your plan supports up to __groupSize__.", + "you_have_1_license_and_your_plan_supports_up_to_y": "You have allocated 1 license and your plan supports up to __groupSize__.", "you_have_added_x_of_group_size_y": "You have added <0>__addedUsersSize__ of <1>__groupSize__ available members", "you_have_been_invited_to_transfer_management_of_your_account": "You have been invited to transfer management of your account.", "you_have_been_invited_to_transfer_management_of_your_account_to": "You have been invited to transfer management of your account to __groupName__.", diff --git a/services/web/test/frontend/features/group-management/components/group-members.spec.tsx b/services/web/test/frontend/features/group-management/components/group-members.spec.tsx index 05fbcb38ab..504d5dbb0b 100644 --- a/services/web/test/frontend/features/group-management/components/group-members.spec.tsx +++ b/services/web/test/frontend/features/group-management/components/group-members.spec.tsx @@ -555,7 +555,7 @@ describe('GroupMembers', function () { ) cy.findByTestId('group-size-details').contains( - 'You have 1 license and your plan supports up to 10. Buy more licenses.' + 'You have allocated 1 license and your plan supports up to 10. Buy more licenses.' ) }) @@ -572,7 +572,9 @@ describe('GroupMembers', function () { ) cy.findByTestId('group-size-details').within(() => { - cy.findByText(/you have \d+ license and your plan supports up to \d+/i) + cy.findByText( + /you have allocated \d+ license and your plan supports up to \d+/i + ) cy.findByText(/buy more licenses/i).should('not.exist') }) })