diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index f58230e4d1c..b63f93bd518 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -745,7 +745,7 @@ "ms-president": "President, Microsoft Developer Division", "verify": "Verify this certification at:", "issued": "Issued", - "fulltext": "<0>This certifies that <1>{{user}} <2>successfully completed the <3>{{title}} <4>Developer Certification on {{time}}", + "fulltext": "<0>This certifies that <1>{{user}} <2>successfully completed the <3>{{title}} <4>Developer Certification on {{time}} <5>representing approximately {{completionTime}} hours of work", "project": { "heading-legacy-full-stack": "As part of this Legacy Full Stack certification, {{user}} completed the following certifications:", "heading": "As part of this certification, {{user}} built the following projects and got all automated test suites to pass:", diff --git a/client/src/client-only-routes/show-certification.tsx b/client/src/client-only-routes/show-certification.tsx index b7e3c885854..b22c2c41f21 100644 --- a/client/src/client-only-routes/show-certification.tsx +++ b/client/src/client-only-routes/show-certification.tsx @@ -217,7 +217,13 @@ const ShowCertification = (props: ShowCertificationProps): JSX.Element => { return ; } - const { date, name: userFullName = null, username, certTitle } = cert; + const { + date, + name: userFullName = null, + username, + certTitle, + completionTime + } = cert; const { user } = props; @@ -352,6 +358,7 @@ const ShowCertification = (props: ShowCertificationProps): JSX.Element => { }) }} +
{{ completionTime }}
diff --git a/cypress/e2e/default/show-certification.ts b/cypress/e2e/default/show-certification.ts index aa500a95c2d..459e08dd205 100644 --- a/cypress/e2e/default/show-certification.ts +++ b/cypress/e2e/default/show-certification.ts @@ -34,6 +34,12 @@ describe('A certification,', function () { const issued = `Developer Certification on August 3, 2018`; cy.get('[data-cy=issue-date]').should('include.text', issued); }); + + it('should be issued with the number of hours undertaken', () => { + cy.visit(certifiedUser); + const hours = '300 hours'; + cy.get('.information-container').should('include.text', hours); + }); }); describe("while viewing someone else's,", function () {