fix(curriculum): allow valid input elements to pass (#51019)

This commit is contained in:
Naomi Carrigan 2023-07-26 08:11:38 -07:00 committed by GitHub
parent d030ddcb2f
commit cc317f458c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
```