From dfbf00311cfe0b80e04d84b4368f78935a57000f Mon Sep 17 00:00:00 2001 From: a2937 Date: Sun, 17 Dec 2023 16:03:33 -0500 Subject: [PATCH] fix: allow space in cafe css project step 32 (#52556) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../5f3c866d28d7ad0de6470505.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866d28d7ad0de6470505.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866d28d7ad0de6470505.md index c87b44242a1..d18cdee509b 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866d28d7ad0de6470505.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866d28d7ad0de6470505.md @@ -16,19 +16,22 @@ Add the class name `flavor` to the `French Vanilla` `p` element. You should add the `flavor` class to your `p` element. ```js -assert(code.match(//i)); +const el = document.querySelector("p.flavor"); +assert.exists(el); ``` You should only have one element with the `flavor` class. ```js -assert($('.flavor').length === 1); +const elements = document.querySelectorAll('.flavor'); +assert.lengthOf(elements, 1); ``` Your `flavor` class should be on the `p` element with the text `French Vanilla`. ```js -assert($('.flavor')[0].innerText.match(/French Vanilla/i)); +const el = document.querySelector(".flavor"); +assert.equal(el.innerText, "French Vanilla"); ``` # --seed--