fix: clarify that label should contain text in survey form project (#46896)

pull/46902/head
Ilenia 2022-07-15 08:59:54 +02:00 committed by GitHub
parent ca356c4fca
commit 85abebb821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -182,21 +182,21 @@ const el = document.getElementById('number-label')
assert(!!el && el.tagName === 'LABEL')
```
Your `#name-label` should not be empty
Your `#name-label` should contain text that describes the input.
```js
const el = document.getElementById('name-label')
assert(!!el && el.innerText.length > 0)
```
Your `#email-label` should not be empty
Your `#email-label` should contain text that describes the input.
```js
const el = document.getElementById('email-label')
assert(!!el && el.innerText.length > 0)
```
Your `#number-label` should not be empty
Your `#number-label` should contain text that describes the input.
```js
const el = document.getElementById('number-label')

View File

@ -182,21 +182,21 @@ const el = document.getElementById('number-label')
assert(!!el && el.tagName === 'LABEL')
```
Your `#name-label` should not be empty.
Your `#name-label` should contain text that describes the input.
```js
const el = document.getElementById('name-label')
assert(!!el && el.innerText.length > 0)
```
Your `#email-label` should not be empty.
Your `#email-label` should contain text that describes the input.
```js
const el = document.getElementById('email-label')
assert(!!el && el.innerText.length > 0)
```
Your `#number-label` should not be empty.
Your `#number-label` should contain text that describes the input.
```js
const el = document.getElementById('number-label')