fix(client): update CTA for daily challenges

This commit is contained in:
Mrugesh Mohapatra
2025-10-03 15:07:18 +05:30
committed by Mrugesh Mohapatra
parent d7f1da61e4
commit 7ff864149c
5 changed files with 12 additions and 11 deletions

View File

@@ -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",

View File

@@ -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')}
</Button>
</Col>

View File

@@ -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`)}
</Button>
<Spacer size='xs' />
<Button block={true} href='/learn/daily-coding-challenge/archive'>
{t(`buttons.go-to-archive-long`)}
{t(`buttons.go-to-dcc-archive`)}
</Button>
</div>
<Spacer size='l' />

View File

@@ -34,7 +34,7 @@ function DailyCodingChallengeWidget({
>
<div className='daily-coding-challenge-button'>
<DailyCodingChallengeIcon className='map-icon' />
{t(`buttons.start`)}
{t(`buttons.go-to-dcc-today`)}
</div>
{forLanding && <LinkButton />}
</ButtonLink>
@@ -51,7 +51,7 @@ function DailyCodingChallengeWidget({
>
<div className='daily-coding-challenge-button'>
<CalendarIcon className='map-icon' />
{t(`buttons.go-to-archive`)}
{t(`buttons.go-to-dcc-archive`)}
</div>
</ButtonLink>
</>

View File

@@ -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();