mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-10 10:01:51 -04:00
fix(curriculum): only select paragraphs in cafe menu step 34 (#52563)
This commit is contained in:
@@ -14,7 +14,7 @@ Next, you want to align the price to the right. Add a class named `price` to you
|
||||
You should add the `price` class to your `p` element.
|
||||
|
||||
```js
|
||||
const el = document.querySelector('.price');
|
||||
const el = document.querySelector('p.price');
|
||||
assert.exists(el);
|
||||
```
|
||||
|
||||
@@ -29,7 +29,7 @@ Your `price` class should be on the `p` element with the text `3.00`.
|
||||
|
||||
```js
|
||||
const el = document.querySelector('.price');
|
||||
assert.match(el.innerText, /3\.00/i);
|
||||
assert.equal(el.innerText, "3.00");
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Reference in New Issue
Block a user