Jelajahi Sumber

Merge pull request #27995 from overleaf/slg-license-allocated-text-2

[web] change text for 1 license

GitOrigin-RevId: 4bb7527c39b587830aa40018f28c60abb3238ff0
Simon Gardner 1 tahun lalu
induk
melakukan
ae15f78f9c

+ 1 - 1
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__</0> of <1>__groupSize__</1> 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__.",

+ 4 - 2
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')
       })
     })