Просмотр исходного кода

Merge pull request #26809 from overleaf/rh-email-already-registered

Update 'email already registered' text

GitOrigin-RevId: aa8b7d0f83549f22a721f6e41a4a6cd51e287251
roo hutton 1 год назад
Родитель
Сommit
a7e3ce67ea

+ 1 - 1
services/web/locales/en.json

@@ -654,7 +654,7 @@
   "email_address": "Email address",
   "email_address": "Email address",
   "email_address_is_invalid": "Email address is invalid",
   "email_address_is_invalid": "Email address is invalid",
   "email_already_associated_with": "The <b>__email1__</b> email is already associated with the <b>__email2__</b> <b>__appName__</b> account.",
   "email_already_associated_with": "The <b>__email1__</b> email is already associated with the <b>__email2__</b> <b>__appName__</b> account.",
-  "email_already_registered": "This email is already registered",
+  "email_already_registered": "This email address is already associated with a different Overleaf account.",
   "email_already_registered_secondary": "This email is already registered as a secondary email",
   "email_already_registered_secondary": "This email is already registered as a secondary email",
   "email_already_registered_sso": "This email is already registered. Please log in to your account another way and link your account to the new provider via your account settings.",
   "email_already_registered_sso": "This email is already registered. Please log in to your account another way and link your account to the new provider via your account settings.",
   "email_confirmed_onboarding": "Great! Let’s get you set up",
   "email_confirmed_onboarding": "Great! Let’s get you set up",

+ 3 - 1
services/web/test/acceptance/src/AddSecondaryEmailTests.mjs

@@ -125,7 +125,9 @@ describe('Add secondary email address confirmation code email', function () {
       })
       })
 
 
       expect(res.response.statusCode).to.equal(409)
       expect(res.response.statusCode).to.equal(409)
-      expect(res.body.message.text).to.equal('This email is already registered')
+      expect(res.body.message.text).to.equal(
+        'This email address is already associated with a different Overleaf account.'
+      )
     })
     })
   })
   })
 
 

+ 5 - 2
services/web/test/frontend/features/settings/components/account-info-section.test.tsx

@@ -129,7 +129,8 @@ describe('<AccountInfoSection />', function () {
     fetchMock.post('/user/settings', {
     fetchMock.post('/user/settings', {
       status: 409,
       status: 409,
       body: {
       body: {
-        message: 'This email is already registered',
+        message:
+          'This email address is already associated with a different Overleaf account.',
       },
       },
     })
     })
     renderSectionWithUserProvider()
     renderSectionWithUserProvider()
@@ -139,7 +140,9 @@ describe('<AccountInfoSection />', function () {
         name: /update/i,
         name: /update/i,
       })
       })
     )
     )
-    await screen.findByText('This email is already registered')
+    await screen.findByText(
+      'This email address is already associated with a different Overleaf account.'
+    )
   })
   })
 
 
   it('hides email input', async function () {
   it('hides email input', async function () {