feat: prep semantic html for release (#57539)

This commit is contained in:
Oliver Eyton-Williams
2024-12-16 20:36:47 -05:00
committed by GitHub
parent c9d2b47fc4
commit fbf6a0d240
9 changed files with 22 additions and 10 deletions
+1
View File
@@ -1718,6 +1718,7 @@
"semantic-html": "Semantic HTML",
"html-forms-and-tables": "Forms and Tables",
"html-and-accessibility": "Accessibility",
"review-html": "HTML Review",
"computer-basics": "Computer Basics",
"basic-css": "Basic CSS",
"design-for-developers": "Design",
@@ -41,9 +41,12 @@ type Module = {
blocks: {
dashedName: string;
}[];
moduleType?: string;
};
const modules = superBlockStructure.chapters.flatMap(({ modules }) => modules);
const modules = superBlockStructure.chapters.flatMap<Module>(
({ modules }) => modules
);
const chapters = superBlockStructure.chapters;
const isLinkModule = (name: string) => {
@@ -2,7 +2,7 @@
"name": "Build an Event Hub",
"blockType": "lab",
"blockLayout": "link",
"isUpcomingChange": true,
"isUpcomingChange": false,
"usesMultifileEditor": true,
"dashedName": "lab-event-hub",
"superBlock": "full-stack-developer",
@@ -2,7 +2,7 @@
"name": "Importance of Semantic HTML",
"blockType": "lecture",
"blockLayout": "challenge-list",
"isUpcomingChange": true,
"isUpcomingChange": false,
"dashedName": "lecture-importance-of-semantic-html",
"superBlock": "full-stack-developer",
"challengeOrder": [
@@ -60,4 +60,4 @@
}
],
"helpCategory": "HTML-CSS"
}
}
@@ -2,7 +2,7 @@
"name": "Semantic HTML Quiz",
"blockType": "quiz",
"blockLayout": "link",
"isUpcomingChange": true,
"isUpcomingChange": false,
"dashedName": "quiz-semantic-html",
"superBlock": "full-stack-developer",
"challengeOrder": [{ "id": "66ed903cf45ce3ece4053ebe", "title": "Semantic HTML Quiz" }],
@@ -2,7 +2,7 @@
"name": "Semantic HTML Review",
"blockType": "review",
"blockLayout": "link",
"isUpcomingChange": true,
"isUpcomingChange": false,
"dashedName": "review-semantic-html",
"superBlock": "full-stack-developer",
"challengeOrder": [
@@ -2,7 +2,7 @@
"name": "Build a Cat Blog Page",
"blockType": "workshop",
"blockLayout": "challenge-grid",
"isUpcomingChange": true,
"isUpcomingChange": false,
"usesMultifileEditor": true,
"hasEditableBoundaries": true,
"dashedName": "workshop-blog-page",
@@ -12,10 +12,10 @@
},
{
"dashedName": "html",
"comingSoon": true,
"modules": [
{
"dashedName": "basic-html",
"comingSoon": true,
"blocks": [
{ "dashedName": "lecture-what-is-html" },
{ "dashedName": "workshop-cat-photo-app" },
@@ -41,6 +41,7 @@
},
{
"dashedName": "html-forms-and-tables",
"comingSoon": true,
"blocks": [
{ "dashedName": "lecture-working-with-forms" },
{ "dashedName": "workshop-hotel-feedback-form" },
@@ -55,6 +56,7 @@
},
{
"dashedName": "html-and-accessibility",
"comingSoon": true,
"blocks": [
{
"dashedName": "lecture-importance-of-accessibility-and-good-html-structure"
@@ -66,6 +68,7 @@
},
{
"moduleType": "review",
"comingSoon": true,
"dashedName": "review-html",
"blocks": [{ "dashedName": "review-html" }]
}
+7 -2
View File
@@ -51,6 +51,7 @@ const {
createHeader,
testId
} = require('../../client/src/templates/Challenges/utils/frame');
const { SuperBlocks } = require('../../shared/config/curriculum');
const ChallengeTitles = require('./utils/challenge-titles');
const MongoIds = require('./utils/mongo-ids');
const createPseudoWorker = require('./utils/pseudo-worker');
@@ -314,8 +315,12 @@ function populateTestsForLang({ lang, challenges, meta, superBlocks }) {
);
});
filteredMeta.forEach((meta, index) => {
// ignore block order for upcoming blocks
if (!meta.isUpcomingChange) {
// Upcoming changes are in developmen so are not required to be in
// order. FullStackDeveloper does not use the meta for order.
if (
!meta.isUpcomingChange &&
meta.superBlock !== SuperBlocks.FullStackDeveloper
) {
it(`${meta.superBlock} ${meta.name} must be in order`, function () {
assert.equal(meta.order, index);
});