diff --git a/curriculum/challenges/english/25-front-end-development/lab-movie-review-page/67ef8f695db52583424bd118.md b/curriculum/challenges/english/25-front-end-development/lab-movie-review-page/67ef8f695db52583424bd118.md index 9dcd1b0fe21..c70f64e757a 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-movie-review-page/67ef8f695db52583424bd118.md +++ b/curriculum/challenges/english/25-front-end-development/lab-movie-review-page/67ef8f695db52583424bd118.md @@ -36,7 +36,7 @@ Inside the `main` element, you should have an `h1` element containing the movie ```js const h1 = document.querySelector("main > h1"); -assert.isAbove(h1?.innerText.length, 0); +assert.isAbove(h1?.innerText.trim().length, 0); ``` Below the `h1` element, you should have an `img` element with a descriptive `alt` attribute. @@ -52,7 +52,7 @@ You should have a `p` element after the image that contains the movie descriptio ```js const description = document.querySelector("main img + p"); assert.isNotNull(description); -assert.isNotEmpty(description.innerText); +assert.isNotEmpty(description.innerText.trim()); ``` You should have another `p` element that contains the rating. @@ -122,7 +122,7 @@ Your `h2` should have the text `Cast Members`. ```js const h2 = document.querySelector("h2"); -assert.equal(h2?.textContent, "Cast Members"); +assert.equal(h2?.textContent.trim(), "Cast Members"); ``` You should have a `ul` element after the `h2`.