mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): allow valid input elements to pass (#51019)
This commit is contained in:
parent
d030ddcb2f
commit
cc317f458c
@ -26,28 +26,28 @@ assert.equal(document.querySelectorAll('label input')?.length, 4);
|
||||
You should add the first `input` after the `label` text `Enter Your First Name:`, and include a space after the colon.
|
||||
|
||||
```js
|
||||
const query = /^Enter Your First Name:\s+<input>/
|
||||
const query = /^Enter Your First Name:\s+<input/
|
||||
assert.match(document.querySelectorAll('label')?.[0]?.innerHTML.trim(), query);
|
||||
```
|
||||
|
||||
You should add the second `input` after the `label` text `Enter Your Last Name:`, and include a space after the colon.
|
||||
|
||||
```js
|
||||
const query = /^Enter Your Last Name:\s+<input>/
|
||||
const query = /^Enter Your Last Name:\s+<input/
|
||||
assert.match(document.querySelectorAll('label')?.[1]?.innerHTML.trim(), query);
|
||||
```
|
||||
|
||||
You should add the third `input` after the `label` text `Enter Your Email:`, and include a space after the colon.
|
||||
|
||||
```js
|
||||
const query = /^Enter Your Email:\s+<input>/
|
||||
const query = /^Enter Your Email:\s+<input/
|
||||
assert.match(document.querySelectorAll('label')?.[2]?.innerHTML.trim(), query);
|
||||
```
|
||||
|
||||
You should add the fourth `input` after the `label` text `Create a New Password:`, and include a space after the colon.
|
||||
|
||||
```js
|
||||
const query = /^Create a New Password:\s+<input>/
|
||||
const query = /^Create a New Password:\s+<input/
|
||||
assert.match(document.querySelectorAll('label')?.[3]?.innerHTML.trim(), query);
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user