fix(tools/scripts): Replace archived challenge links in action-row test (#64841)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Zeina Obeid
2025-12-22 20:14:24 +02:00
committed by GitHub
parent 39194f5496
commit a34fad01ca
2 changed files with 6 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ test.describe('Desktop view', () => {
test.describe('Pages with previews', () => {
test.beforeEach(async ({ page }) => {
await page.goto(
'/learn/2022/responsive-web-design/build-a-survey-form-project/build-a-survey-form'
'/learn/responsive-web-design-v9/lab-event-flyer-page/build-an-event-flyer-page'
);
});
@@ -42,7 +42,7 @@ test.describe('Desktop view', () => {
}
const instructionsPanelTitle = page.getByRole('heading', {
name: 'Build a Survey Form'
name: 'Build an Event Flyer Page'
});
await expect(instructionsPanelTitle).toBeHidden();
});
@@ -90,9 +90,7 @@ test.describe('Desktop view', () => {
test('Preview Buttons should not appear when preview is disabled', async ({
page
}) => {
await page.goto(
'/learn/javascript-algorithms-and-data-structures-v8/learn-introductory-javascript-by-building-a-pyramid-generator/step-1'
);
await page.goto('/learn/javascript-v9/workshop-greeting-bot/step-1');
const previewButton = page.getByTestId('preview-pane-button');
await expect(previewButton).toHaveCount(0);
});
@@ -104,7 +102,7 @@ test.describe('Mobile view', () => {
test('Action row is hidden', async ({ page }) => {
await page.goto(
'/learn/2022/responsive-web-design/build-a-survey-form-project/build-a-survey-form'
'/learn/responsive-web-design-v9/lab-survey-form/build-a-survey-form'
);
const actionRow = page.getByTestId('action-row');
await expect(actionRow).toBeHidden();

View File

@@ -13,7 +13,7 @@ test.describe('Challenge Breadcrumb Tests', () => {
await expect(superBlock).toBeVisible();
const superBlockLink = superBlock.getByRole('link', {
name: 'Responsive Web Design'
name: 'Responsive Web Design Certification'
});
await expect(superBlockLink).toBeVisible();
await expect(superBlockLink).toHaveAttribute(
@@ -25,7 +25,7 @@ test.describe('Challenge Breadcrumb Tests', () => {
await expect(superBlock).toBeVisible();
const blockLink = block.getByRole('link', {
name: 'Learn HTML by Building a Cat Photo App'
name: 'Build a Cat Photo App'
});
await expect(blockLink).toBeVisible();
await expect(blockLink).toHaveAttribute(