From 00fa5b2d965ebad350c3f093e65cdac567865711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Alby?= Date: Thu, 26 May 2022 14:58:21 +0200 Subject: [PATCH] Merge pull request #8162 from overleaf/ae-orcid-capital Fix ORCID capitalisation GitOrigin-RevId: 56136473482568e303570c9679a13e5d032d6d34 --- services/web/frontend/stories/settings/helpers/linking.js | 2 +- .../features/settings/components/linking-section.test.tsx | 4 ++-- .../frontend/features/settings/context/sso-context.test.tsx | 2 +- .../web/test/unit/src/User/ThirdPartyIdentityManagerTests.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/services/web/frontend/stories/settings/helpers/linking.js b/services/web/frontend/stories/settings/helpers/linking.js index 9400dbea1c..295d037e5b 100644 --- a/services/web/frontend/stories/settings/helpers/linking.js +++ b/services/web/frontend/stories/settings/helpers/linking.js @@ -47,7 +47,7 @@ export function setDefaultMeta() { link: '/blog/434', appName: 'Overleaf', }, - name: 'Orcid', + name: 'ORCID', linkPath: '/auth/orcid', }, twitter: { diff --git a/services/web/test/frontend/features/settings/components/linking-section.test.tsx b/services/web/test/frontend/features/settings/components/linking-section.test.tsx index 3a5021b8fb..ca01a64188 100644 --- a/services/web/test/frontend/features/settings/components/linking-section.test.tsx +++ b/services/web/test/frontend/features/settings/components/linking-section.test.tsx @@ -28,7 +28,7 @@ const mockOauthProviders = { link: '/blog/434', appName: 'Overleaf', }, - name: 'Orcid', + name: 'ORCID', linkPath: '/auth/orcid', }, twitter: { @@ -77,7 +77,7 @@ describe('', function () { screen.getByText('Log in with Google.') screen.getByRole('button', { name: 'Unlink' }) - screen.getByText('Orcid') + screen.getByText('ORCID') screen.getByText( /Securely establish your identity by linking your ORCID iD/ ) diff --git a/services/web/test/frontend/features/settings/context/sso-context.test.tsx b/services/web/test/frontend/features/settings/context/sso-context.test.tsx index b9b43e3dcf..f03d3dc547 100644 --- a/services/web/test/frontend/features/settings/context/sso-context.test.tsx +++ b/services/web/test/frontend/features/settings/context/sso-context.test.tsx @@ -19,7 +19,7 @@ const mockOauthProviders = { link: '/blog/434', appName: 'Overleaf', }, - name: 'Orcid', + name: 'ORCID', linkPath: '/auth/orcid', }, twitter: { diff --git a/services/web/test/unit/src/User/ThirdPartyIdentityManagerTests.js b/services/web/test/unit/src/User/ThirdPartyIdentityManagerTests.js index ce591a5cb0..faac674b14 100644 --- a/services/web/test/unit/src/User/ThirdPartyIdentityManagerTests.js +++ b/services/web/test/unit/src/User/ThirdPartyIdentityManagerTests.js @@ -36,7 +36,7 @@ describe('ThirdPartyIdentityManager', function () { name: 'Google', }, orcid: { - name: 'Orcid', + name: 'ORCID', }, }, }, @@ -174,7 +174,7 @@ describe('ThirdPartyIdentityManager', function () { const emailCall = this.EmailHandler.sendEmail.getCall(0) expect(emailCall.args[0]).to.equal('securityAlert') 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 () {