From 3c77e8b2d48aa0ec18e38d00829d000775ef2589 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Thu, 19 Mar 2026 18:37:02 +0700 Subject: [PATCH] fix(client): add Beta to English cert titles (#66547) --- client/i18n/locales/english/translations.json | 6 +++--- e2e/certification.spec.ts | 13 ++++++++++-- e2e/profile.spec.ts | 21 +++++++++++++++++++ 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index 8a42fa49f48..f37dce9701a 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -1280,10 +1280,10 @@ "learn-rag-mcp-fundamentals": "Learn RAG and MCP Fundamentals", "introduction-to-precalculus": "Introduction to Precalculus", "learn-oop-with-python": "Learn OOP with Python", - "a2-english-for-developers": "A2 English for Developers", + "a2-english-for-developers": "A2 English for Developers (Beta)", "a2-english-for-developers-cert": "A2 English for Developers Certification (Beta)", - "b1-english-for-developers": "B1 English for Developers", - "b1-english-for-developers-cert": "B1 English for Developers Certification", + "b1-english-for-developers": "B1 English for Developers (Beta)", + "b1-english-for-developers-cert": "B1 English for Developers Certification (Beta)", "responsive-web-design-v9": "Responsive Web Design", "responsive-web-design-v9-cert": "Responsive Web Design Certification", "javascript-v9": "JavaScript", diff --git a/e2e/certification.spec.ts b/e2e/certification.spec.ts index e2ba2bbcb5c..b6ce71d8891 100644 --- a/e2e/certification.spec.ts +++ b/e2e/certification.spec.ts @@ -249,8 +249,14 @@ test.describe('Certification page - Microsoft', () => { test.describe('Certification page - Current Certifications', () => { const currentCertifications = [ { slug: 'python-v9', title: 'Python' }, - { slug: 'a2-english-for-developers', title: 'A2 English for Developers' }, - { slug: 'b1-english-for-developers', title: 'B1 English for Developers' }, + { + slug: 'a2-english-for-developers', + title: 'A2 English for Developers (Beta)' + }, + { + slug: 'b1-english-for-developers', + title: 'B1 English for Developers (Beta)' + }, { slug: 'javascript-v9', title: 'JavaScript' }, { slug: 'relational-databases-v9', title: 'Relational Database' }, { slug: 'responsive-web-design-v9', title: 'Responsive Web Design' }, @@ -261,6 +267,9 @@ test.describe('Certification page - Current Certifications', () => { page }) => { await page.goto(`/certification/certifieduser/${cert.slug}`); + await expect( + page.getByRole('heading', { level: 1, name: cert.title }) + ).toBeVisible(); await expect(page.getByTestId('project-links')).toContainText( 'As part of this certification, Full Stack User passed the following exam: ' ); diff --git a/e2e/profile.spec.ts b/e2e/profile.spec.ts index f94b88913a8..e8c277d378c 100644 --- a/e2e/profile.spec.ts +++ b/e2e/profile.spec.ts @@ -9,6 +9,17 @@ const certs = [ } ]; +const betaCerts = [ + { + name: 'A2 English for Developers', + url: '/certification/certifieduser/a2-english-for-developers' + }, + { + name: 'B1 English for Developers', + url: '/certification/certifieduser/b1-english-for-developers' + } +]; + const legacyCerts = [ { name: 'Legacy Responsive Web Design V8', @@ -134,6 +145,16 @@ test.describe('Profile component', () => { await expect(link).toHaveAttribute('href', cert.url); } + for (const cert of betaCerts) { + const link = page + .getByRole('link', { + name: `View ${cert.name} Certification (Beta)` + }) + .first(); + await expect(link).toBeVisible(); + await expect(link).toHaveAttribute('href', cert.url); + } + for (const cert of legacyCerts) { const link = page .getByRole('link', {