mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): add Beta to English cert titles (#66547)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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: '
|
||||
);
|
||||
|
||||
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user