fix: clarify that label should contain text in survey form project (#46896)
parent
ca356c4fca
commit
85abebb821
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue