mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update tests to use specific methods in calorie counter workshop (#59865)
This commit is contained in:
+2
-2
@@ -40,7 +40,7 @@ assert.exists(document.querySelector('.controls > span > select'));
|
||||
Your `select` element should come after your `label` element.
|
||||
|
||||
```js
|
||||
assert(document.querySelector('.controls > span > select')?.previousElementSibling?.tagName === 'LABEL');
|
||||
assert.equal(document.querySelector('.controls > span > select')?.previousElementSibling?.tagName, 'LABEL');
|
||||
```
|
||||
|
||||
Your new `select` element should have an `id` attribute set to `entry-dropdown`.
|
||||
@@ -70,7 +70,7 @@ assert.exists(document.querySelector('.controls > span > button'));
|
||||
Your `button` element should come after your `select` element.
|
||||
|
||||
```js
|
||||
assert(document.querySelector('.controls > span > button')?.previousElementSibling?.tagName === 'SELECT');
|
||||
assert.equal(document.querySelector('.controls > span > button')?.previousElementSibling?.tagName, 'SELECT');
|
||||
```
|
||||
|
||||
Your new `button` element should have an `id` attribute set to `add-entry`.
|
||||
|
||||
Reference in New Issue
Block a user