mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-13 22:00:19 -04:00
fix(curriculum): replace test method in step 24 'workshop-hotel-feedback-form' (#61882)
This commit is contained in:
@@ -56,7 +56,7 @@ assert.strictEqual(document.querySelectorAll("fieldset:nth-of-type(3) label + in
|
||||
You should have a `label` element with the text of `Reputation` below the location checkbox.
|
||||
|
||||
```js
|
||||
assert.isNotNull(document.querySelectorAll('fieldset:nth-of-type(3) input[value="location"] + label')?.textContent, 'Reputation');
|
||||
assert.strictEqual(document.querySelector('fieldset:nth-of-type(3) input[value="location"] + label')?.textContent?.trim(), 'Reputation');
|
||||
```
|
||||
|
||||
Your `label` should have the `for` attribute set to `"reputation"`.
|
||||
|
||||
Reference in New Issue
Block a user