Procházet zdrojové kódy

Merge pull request #8162 from overleaf/ae-orcid-capital

Fix ORCID capitalisation

GitOrigin-RevId: 56136473482568e303570c9679a13e5d032d6d34
Timothée Alby před 4 roky
rodič
revize
00fa5b2d96

+ 1 - 1
services/web/frontend/stories/settings/helpers/linking.js

@@ -47,7 +47,7 @@ export function setDefaultMeta() {
         link: '/blog/434',
         link: '/blog/434',
         appName: 'Overleaf',
         appName: 'Overleaf',
       },
       },
-      name: 'Orcid',
+      name: 'ORCID',
       linkPath: '/auth/orcid',
       linkPath: '/auth/orcid',
     },
     },
     twitter: {
     twitter: {

+ 2 - 2
services/web/test/frontend/features/settings/components/linking-section.test.tsx

@@ -28,7 +28,7 @@ const mockOauthProviders = {
       link: '/blog/434',
       link: '/blog/434',
       appName: 'Overleaf',
       appName: 'Overleaf',
     },
     },
-    name: 'Orcid',
+    name: 'ORCID',
     linkPath: '/auth/orcid',
     linkPath: '/auth/orcid',
   },
   },
   twitter: {
   twitter: {
@@ -77,7 +77,7 @@ describe('<LinkingSection />', function () {
     screen.getByText('Log in with Google.')
     screen.getByText('Log in with Google.')
     screen.getByRole('button', { name: 'Unlink' })
     screen.getByRole('button', { name: 'Unlink' })
 
 
-    screen.getByText('Orcid')
+    screen.getByText('ORCID')
     screen.getByText(
     screen.getByText(
       /Securely establish your identity by linking your ORCID iD/
       /Securely establish your identity by linking your ORCID iD/
     )
     )

+ 1 - 1
services/web/test/frontend/features/settings/context/sso-context.test.tsx

@@ -19,7 +19,7 @@ const mockOauthProviders = {
       link: '/blog/434',
       link: '/blog/434',
       appName: 'Overleaf',
       appName: 'Overleaf',
     },
     },
-    name: 'Orcid',
+    name: 'ORCID',
     linkPath: '/auth/orcid',
     linkPath: '/auth/orcid',
   },
   },
   twitter: {
   twitter: {

+ 2 - 2
services/web/test/unit/src/User/ThirdPartyIdentityManagerTests.js

@@ -36,7 +36,7 @@ describe('ThirdPartyIdentityManager', function () {
               name: 'Google',
               name: 'Google',
             },
             },
             orcid: {
             orcid: {
-              name: 'Orcid',
+              name: 'ORCID',
             },
             },
           },
           },
         },
         },
@@ -174,7 +174,7 @@ describe('ThirdPartyIdentityManager', function () {
       const emailCall = this.EmailHandler.sendEmail.getCall(0)
       const emailCall = this.EmailHandler.sendEmail.getCall(0)
       expect(emailCall.args[0]).to.equal('securityAlert')
       expect(emailCall.args[0]).to.equal('securityAlert')
       expect(emailCall.args[1].actionDescribed).to.contain(
       expect(emailCall.args[1].actionDescribed).to.contain(
-        'an Orcid account was unlinked from'
+        'an ORCID account was unlinked from'
       )
       )
     })
     })
     it('should update user audit log', async function () {
     it('should update user audit log', async function () {