{canSaveToDB(challengeType) ? t('learn.revert-warn') - : t('learn.reset-warn')} + : t('learn.reset-warn', { + title: challengeTitle + })}
{t('learn.reset-warn-2')} diff --git a/e2e/challenge-reset-modal.spec.ts b/e2e/challenge-reset-modal.spec.ts index 5c42de5f249..0b14057e3c6 100644 --- a/e2e/challenge-reset-modal.spec.ts +++ b/e2e/challenge-reset-modal.spec.ts @@ -42,7 +42,11 @@ test('should render the modal content correctly', async ({ page }) => { }) ).toBeVisible(); - await expect(page.getByText(translations.learn['reset-warn'])).toBeVisible(); + await expect( + page.getByText( + 'Are you sure you wish to reset this lesson (Step 3)? The code editors and tests will be reset.' + ) + ).toBeVisible(); }); test('User can reset challenge', async ({ page, isMobile, browserName }) => {