mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): add test for number input min value in lab event RSVP (#64967)
This commit is contained in:
@@ -127,6 +127,19 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
The `input[type="number"]` element should not accept values less than 1.
|
||||
|
||||
```js
|
||||
try {
|
||||
const input = document.querySelector('form input[type="number"]');
|
||||
assert.exists(input);
|
||||
assert.equal(input.min, '1');
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
throw e;
|
||||
}
|
||||
```
|
||||
|
||||
Changing the value of the `input[type="text"]` elements should update component state.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user