From 5539605aca99478fc584a5c4ee17874e4f2b54e7 Mon Sep 17 00:00:00 2001
From: Dario-DC <105294544+Dario-DC@users.noreply.github.com>
Date: Wed, 8 Jan 2025 19:31:22 +0100
Subject: [PATCH] fix(curriculum): intro, descriptions and tests in cat blog
page workshop (#57984)
---
client/i18n/locales/english/intro.json | 2 +-
.../workshop-blog-page/index.md | 2 +-
.../669aff9f5488f1bea056416d.md | 4 ++--
.../669fc7e141e4703748c558bf.md | 2 +-
.../669fc938d38e6e38ace9251e.md | 2 +-
.../669fd003cb89ee3c2402e041.md | 16 +++++++-------
.../669fd6fd12918e3de87854d4.md | 12 +++++------
.../669fdc11c9b0263fe0814a7a.md | 12 +++++------
.../669fde2081f65141ad703fe4.md | 10 ++++-----
.../669fdfc9a5e3da42d2376609.md | 10 ++++-----
.../66a334a1a7cca6354999f9bf.md | 8 +++----
.../66a335e5888ffb367633200a.md | 15 ++++++++++---
.../66a338be7f1dee383a0e0ecb.md | 21 +++++++++++++------
.../66a33a00514b40393a983c24.md | 21 +++++++++++++------
.../66a33ac0ae8e3139fb34afc3.md | 4 ++--
.../66a33bd56208583aeb4837c4.md | 8 +++----
.../66a33c449ffdf93b90c5821e.md | 4 ++--
.../66a33e9bd3aa213cd23d9c57.md | 6 +++---
.../66a49f685961e997e337cab1.md | 2 +-
.../66a7e72adf226c02626715a3.md | 8 +++----
20 files changed, 98 insertions(+), 71 deletions(-)
diff --git a/client/i18n/locales/english/intro.json b/client/i18n/locales/english/intro.json
index abc500c6604..2e89003760b 100644
--- a/client/i18n/locales/english/intro.json
+++ b/client/i18n/locales/english/intro.json
@@ -1856,7 +1856,7 @@
"workshop-blog-page": {
"title": "Build a Cat Blog Page",
"intro": [
- "In this workshop, you will learn how to build an HTML only blog page using semantic elements including the main, nav, article and footer elements."
+ "In this workshop, you will build an HTML only blog page using semantic elements including the main, nav, article and footer elements."
]
},
"lab-event-hub": {
diff --git a/client/src/pages/learn/full-stack-developer/workshop-blog-page/index.md b/client/src/pages/learn/full-stack-developer/workshop-blog-page/index.md
index 5582d3bb75a..4ac585b0d34 100644
--- a/client/src/pages/learn/full-stack-developer/workshop-blog-page/index.md
+++ b/client/src/pages/learn/full-stack-developer/workshop-blog-page/index.md
@@ -6,4 +6,4 @@ superBlock: full-stack-developer
## Introduction to the Build a Cat Blog Page
-This is the second workshop for the new full stack developer certification.
+In this workshop, you will build an HTML only blog page using semantic elements including the main, nav, article and footer elements.
diff --git a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669aff9f5488f1bea056416d.md b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669aff9f5488f1bea056416d.md
index d12e6c123cb..2865934d5f8 100644
--- a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669aff9f5488f1bea056416d.md
+++ b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669aff9f5488f1bea056416d.md
@@ -8,11 +8,11 @@ demoType: onLoad
# --description--
-In this workshop, you will learn how to work with semantic HTML by building a blog page dedicated to Mr. Whiskers the cat.
+In this workshop, you will practice working with semantic HTML by building a blog page dedicated to Mr. Whiskers the cat.
To begin the project, add the ``, and an `html` element with a `lang` attribute of `en`.
-Remember that you learned how to build a basic HTML boilerplate like this in the previous workshop.
+Remember that you learned how to build a basic HTML boilerplate like this in the previous module.
```html
diff --git a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fc7e141e4703748c558bf.md b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fc7e141e4703748c558bf.md
index 4eebb3a9e2e..9213298dcd8 100644
--- a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fc7e141e4703748c558bf.md
+++ b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fc7e141e4703748c558bf.md
@@ -37,7 +37,7 @@ assert.match(code, /
[.\n\s]*<\/head>/im)
--fcc-editable-region--
-
+
--fcc-editable-region--
```
diff --git a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fc938d38e6e38ace9251e.md b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fc938d38e6e38ace9251e.md
index 1131bc94253..54f45919cbc 100644
--- a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fc938d38e6e38ace9251e.md
+++ b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fc938d38e6e38ace9251e.md
@@ -80,7 +80,7 @@ assert.strictEqual(titleText, "Mr. Whiskers' Blog");
--fcc-editable-region--
-
+
--fcc-editable-region--
diff --git a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fd003cb89ee3c2402e041.md b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fd003cb89ee3c2402e041.md
index 775b3caef7b..ca14b548096 100644
--- a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fd003cb89ee3c2402e041.md
+++ b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fd003cb89ee3c2402e041.md
@@ -13,7 +13,7 @@ Below the `h1` element, start by adding a `figure` element.
Inside the `figure` element, add an `img` element.
-The `img` `src` attribute should have a value of `"https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg"` and the `alt` text should have a value of `"a cat peacefully sleeping"`.
+The `src` attribute of the `img` should have a value of `"https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg"` and the `alt` text should have a value of `"a cat peacefully sleeping"`.
Below your `img` element, add a `figcaption` with the text `Mr. Whiskers Sleeping`.
@@ -35,7 +35,7 @@ Your `figure` element should be within your `header` element.
```js
const figureElement = document.querySelector('figure');
-assert(figureElement.parentElement.tagName === 'HEADER');
+assert(figureElement?.parentElement.tagName === 'HEADER');
```
You should have an `img` element.
@@ -48,14 +48,14 @@ Your `img` element should be within your `figure` element.
```js
const imgElement = document.querySelector('img');
-assert.strictEqual(imgElement.parentElement.tagName, 'FIGURE');
+assert.strictEqual(imgElement?.parentElement.tagName, 'FIGURE');
```
Your `img` element should have a `src` attribute set to `"https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg"`.
```js
const imgElement = document.querySelector('img');
-const src = imgElement.getAttribute('src');
+const src = imgElement?.getAttribute('src');
assert.strictEqual(src, 'https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg');
```
@@ -64,7 +64,7 @@ Your `img` element should have an `alt` attribute set to `"a cat peacefully slee
```js
const imgElement = document.querySelector('img');
-const alt = imgElement.getAttribute('alt');
+const alt = imgElement?.getAttribute('alt');
assert.strictEqual(alt, 'a cat peacefully sleeping');
```
@@ -85,21 +85,21 @@ Your `figcaption` element should be within your `figure` element.
```js
const figcaptionElement = document.querySelector('figcaption');
-assert.strictEqual(figcaptionElement.parentElement.tagName, 'FIGURE');
+assert.strictEqual(figcaptionElement?.parentElement.tagName, 'FIGURE');
```
Your `figcaption` element should have a the text of `Mr. Whiskers Sleeping`.
```js
const figcaptionElement = document.querySelector('figcaption');
-assert.strictEqual(figcaptionElement.innerText, "Mr. Whiskers Sleeping")
+assert.strictEqual(figcaptionElement?.innerText, "Mr. Whiskers Sleeping")
```
Your `figcaption` should be below the `img` element. You have them in the wrong order.
```js
const figureElement = document.querySelector('figure');
-assert.strictEqual(figureElement.lastElementChild.tagName, "FIGCAPTION")
+assert.strictEqual(figureElement?.lastElementChild?.tagName, "FIGCAPTION")
```
# --seed--
diff --git a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fd6fd12918e3de87854d4.md b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fd6fd12918e3de87854d4.md
index f8665a22a7b..aafb1b76c9a 100644
--- a/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fd6fd12918e3de87854d4.md
+++ b/curriculum/challenges/english/25-front-end-development/workshop-blog-page/669fd6fd12918e3de87854d4.md
@@ -45,7 +45,7 @@ Your `nav` element should be within your `header` element.
```js
const navElement = document.querySelector('nav');
-assert.strictEqual(navElement.parentElement.tagName, 'HEADER');
+assert.strictEqual(navElement?.parentElement.tagName, 'HEADER');
```
Your `ul` element should have an opening tag.
@@ -64,7 +64,7 @@ Your `ul` element should be within your `nav` element.
```js
const ulElement = document.querySelector('ul');
-assert.strictEqual(ulElement.parentElement.tagName, 'NAV');
+assert.strictEqual(ulElement?.parentElement.tagName, 'NAV');
```
Your `ul` element should contain three `li` elements.
@@ -73,7 +73,7 @@ Your `ul` element should contain three `li` elements.
const ulElement = document.querySelector("ul");
const liElements = ulElement.querySelectorAll("li");
-assert.strictEqual(liElements.length, 3);
+assert.strictEqual(liElements?.length, 3);
```
# --seed--
@@ -97,9 +97,9 @@ assert.strictEqual(liElements.length, 3);
/>
Mr. Whiskers Sleeping
- --fcc-editable-region--
-
- --fcc-editable-region--
+--fcc-editable-region--
+
+--fcc-editable-region--