mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 02:07:00 +08:00
refactor: rename superblocks.ts to curriculum (#55624)
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
import { expect, test, type Page } from '@playwright/test';
|
||||
import intro from '../client/i18n/locales/english/intro.json';
|
||||
import translations from '../client/i18n/locales/english/translations.json';
|
||||
import { SuperBlocks } from '../shared/config/superblocks';
|
||||
import { SuperBlocks } from '../shared/config/curriculum';
|
||||
|
||||
const landingPageElements = {
|
||||
heading: 'landing-header',
|
||||
@@ -150,7 +150,7 @@ test('Testimonial endorser people have images, occupation, location and testimon
|
||||
}
|
||||
});
|
||||
|
||||
test('Has links to all superblocks', async () => {
|
||||
test('Has links to all curriculum', async () => {
|
||||
const curriculumBtns = page.getByTestId(landingPageElements.curriculumBtns);
|
||||
await expect(curriculumBtns).toHaveCount(21);
|
||||
for (let index = 0; index < superBlocks.length; index++) {
|
||||
|
||||
+1
-4
@@ -2,10 +2,7 @@ import { test, expect } from '@playwright/test';
|
||||
import translations from '../client/i18n/locales/english/translations.json';
|
||||
import intro from '../client/i18n/locales/english/intro.json';
|
||||
|
||||
import {
|
||||
SuperBlockStages,
|
||||
superBlockOrder
|
||||
} from '../shared/config/superblocks';
|
||||
import { SuperBlockStages, superBlockOrder } from '../shared/config/curriculum';
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto('/learn');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { execSync } from 'child_process';
|
||||
import { test, expect, Page } from '@playwright/test';
|
||||
import { SuperBlocks } from '../shared/config/superblocks';
|
||||
import { SuperBlocks } from '../shared/config/curriculum';
|
||||
import tributePageHtml from './fixtures/tribute-page-html.json';
|
||||
import tributePageCss from './fixtures/tribute-page-css.json';
|
||||
import curriculum from './fixtures/js-ads-projects.json';
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { SuperBlocks } from '../shared/config/superblocks';
|
||||
import { SuperBlocks } from '../shared/config/curriculum';
|
||||
import type { ListItem } from '../client/src/components/seo/';
|
||||
import metaTags from '../client/i18n/locales/english/meta-tags.json';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user