fix(curriculum): update tests to use specific methods in calorie counter workshop (#59865)

This commit is contained in:
Clarence
2025-04-21 21:05:45 +01:00
committed by GitHub
parent ae720e8282
commit a026d95e3a
@@ -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`.