diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index f9267403944..7d11816fc46 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -118,11 +118,8 @@ "share-on-threads": "Share on Threads", "play-scene": "Press Play", "download-latest-version": "Download the Latest Version", - "start": "Start", - "go-to-today": "Go to Today's Challenge", - "go-to-today-long": "Go to Today's Coding Challenge", - "go-to-archive": "Go to Archive", - "go-to-archive-long": "Go to Daily Coding Challenge Archive" + "go-to-dcc-today": "Go to Today's Challenge", + "go-to-dcc-archive": "Go to Daily Coding Challenge Archive" }, "daily-coding-challenges": { "title": "Daily Coding Challenges", diff --git a/client/src/components/daily-coding-challenge/calendar.tsx b/client/src/components/daily-coding-challenge/calendar.tsx index c8f2d70ef94..231013ef26a 100644 --- a/client/src/components/daily-coding-challenge/calendar.tsx +++ b/client/src/components/daily-coding-challenge/calendar.tsx @@ -240,7 +240,7 @@ function DailyCodingChallengeCalendar({ block={true} href={`/learn/daily-coding-challenge/${todayUsCentral}`} > - {t('buttons.go-to-today')} + {t('buttons.go-to-dcc-today')} diff --git a/client/src/components/daily-coding-challenge/not-found.tsx b/client/src/components/daily-coding-challenge/not-found.tsx index 293c99453a2..a8d9da130fa 100644 --- a/client/src/components/daily-coding-challenge/not-found.tsx +++ b/client/src/components/daily-coding-challenge/not-found.tsx @@ -43,11 +43,11 @@ function DailyCodingChallengeNotFound(): JSX.Element { block={true} href={`/learn/daily-coding-challenge/${getTodayUsCentral()}`} > - {t(`buttons.go-to-today-long`)} + {t(`buttons.go-to-dcc-today`)} diff --git a/client/src/components/daily-coding-challenge/widget.tsx b/client/src/components/daily-coding-challenge/widget.tsx index 5fe9871b814..b03f4950ad3 100644 --- a/client/src/components/daily-coding-challenge/widget.tsx +++ b/client/src/components/daily-coding-challenge/widget.tsx @@ -34,7 +34,7 @@ function DailyCodingChallengeWidget({ >
- {t(`buttons.start`)} + {t(`buttons.go-to-dcc-today`)}
{forLanding && } @@ -51,7 +51,7 @@ function DailyCodingChallengeWidget({ >
- {t(`buttons.go-to-archive`)} + {t(`buttons.go-to-dcc-archive`)}
diff --git a/e2e/daily-coding-challenge.spec.ts b/e2e/daily-coding-challenge.spec.ts index 41d25fbaf20..87205be3139 100644 --- a/e2e/daily-coding-challenge.spec.ts +++ b/e2e/daily-coding-challenge.spec.ts @@ -220,7 +220,11 @@ test.describe('Daily Coding Challenge Archive', () => { ).toBeVisible(); await expect( - page.getByRole('link', { name: /go to today/i }) + page + .locator('div') + .filter({ hasText: /New challenges are released/ }) + .getByRole('link', { name: /go to today/i }) + .first() ).toBeVisible(); const totalCalendarDays = await page.getByTestId('calendar-day').count();