mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
fix(client): update CTA for daily challenges
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
d7f1da61e4
commit
7ff864149c
@@ -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",
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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' />
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user