From 581e553d2ebc7bee2c4bdf0b5b8d67136bdd59ce Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Fri, 9 Feb 2024 09:45:54 +0100 Subject: [PATCH] test: update completion modal tests (#53377) --- e2e/completion-modal.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/completion-modal.spec.ts b/e2e/completion-modal.spec.ts index e6c87cf810c..42ab5abb6d6 100644 --- a/e2e/completion-modal.spec.ts +++ b/e2e/completion-modal.spec.ts @@ -1,12 +1,12 @@ import { test, expect } from '@playwright/test'; import translations from '../client/i18n/locales/english/translations.json'; -const timeCalculatorUrl = - '/learn/scientific-computing-with-python/scientific-computing-with-python-projects/time-calculator'; +const nextChallengeURL = + '/learn/data-analysis-with-python/data-analysis-with-python-projects/demographic-data-analyzer'; test.beforeEach(async ({ page }) => { await page.goto( - '/learn/scientific-computing-with-python/scientific-computing-with-python-projects/arithmetic-formatter' + '/learn/data-analysis-with-python/data-analysis-with-python-projects/mean-variance-standard-deviation-calculator' ); await page.getByLabel('Solution Link').fill('https://example.com'); await page @@ -44,7 +44,7 @@ test.describe('Challenge Completion Modal Tests (Signed Out)', () => { await page .getByRole('button', { name: translations.buttons['go-to-next'] }) .click(); - await expect(page).toHaveURL(timeCalculatorUrl); + await expect(page).toHaveURL(nextChallengeURL); }); }); @@ -73,6 +73,6 @@ test.describe('Challenge Completion Modal Tests (Signed In)', () => { await page .getByRole('button', { name: translations.buttons['submit-and-go'] }) .click(); - await expect(page).toHaveURL(timeCalculatorUrl); + await expect(page).toHaveURL(nextChallengeURL); }); });