Make stories about validation in form components #4221
Labels
BUG
Something isn't working
d3: medium
No cheats. Monsters a bit faster.
good first issue
Right issue if you're new to vuestic
v4: must have
This is something really user want to have
Components:
Stories:
// - [ ] Reset - must set value to clearValue prop and reset validation
// - [ ] ResetValidation - must hide erorr, make isTouched false and isDirty false
! Make sure to test how component displayed, not if useValidation is working - we have unit test for that. We need only check visual (e.g. className, not style), dom content and aria attributes.
Notice, in this task we only need stories, component might be broken and falling test are OK.
Most of stories for one component applies to another, but I'd go with copy/paste stories instead of making some kind of wrapper for it.
Example of VaForm globall stories: packages/ui/src/components/va-form/VaForm.stories.ts - there mostly input tested, so half stories for VaInput is already here. We can copy them with few changes. Keep VaForm stories as is.
The text was updated successfully, but these errors were encountered: