refactor: rename superblocks.ts to curriculum (#55624)

This commit is contained in:
Oliver Eyton-Williams
2024-07-23 09:04:02 -07:00
committed by GitHub
parent 6d1debec1c
commit 1e25cfdf83
37 changed files with 43 additions and 44 deletions
+2 -2
View File
@@ -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
View File
@@ -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 -1
View File
@@ -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
View File
@@ -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';