You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve searched for any related issues/questions on github
How can we help?
Hi there! I am trying to chai write unit tests that checks the input text change of the va-text-input component while using the React Testing Library. I am using a data-testid on the va-text-input component to pinpoint it's value, however when I use fireEvent.change from the React Testing Library, I receive this error: "Error: The given element does not have a value setter." This indicates that the va-text-input is not a 'true' input type component.
Can you help me find a way to test this component so that I can alter the text value? Any method would work, I'm currently shot of ideas.
Thanks!
What you have tried:
Tried using fireEvent.change and fireEvent.input with the component's data-testid attribute to change the value of the input field within a chai unit test.
What problem does this solve?
This problem prevents in-depth testing on the va-text-input component.. If this issue can be resolved developers will be able to just the text value presented inside the input field.
Additional Context
The text was updated successfully, but these errors were encountered:
Support question
How can we help?
Can you help me find a way to test this component so that I can alter the text value? Any method would work, I'm currently shot of ideas.
Thanks!
What you have tried:
What problem does this solve?
Additional Context
The text was updated successfully, but these errors were encountered: