We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toHaveDisplayValue
toHaveDisplayValue is a Jest DOM matcher that asserts the value visible to the user in text inputs.
Adapting it to our case it would assert the value in TextInput host elements, to match given value.
TextInput
Proposed API:
export function toHaveDisplayValue( this: jest.MatcherContext, element: ReactTestInstance, valueToMatch: TextMatch, options?: TextMatchOptions )
The matcher should:
props.value ?? props.defaultValue
valueToMatch
Each matcher should have a fairly comprehensive test suite.
#1454
The text was updated successfully, but these errors were encountered:
toHaveStyle
🎉 Release in version: v12.4.0
Sorry, something went wrong.
mdjastrzebski
jaworek
Successfully merging a pull request may close this issue.
Describe the Feature
toHaveDisplayValue
is a Jest DOM matcher that asserts the value visible to the user in text inputs.Adapting it to our case it would assert the value in
TextInput
host elements, to match given value.Possible Implementations
Proposed API:
The matcher should:
props.value ?? props.defaultValue
valueToMatch
.Each matcher should have a fairly comprehensive test suite.
Links
toHaveDisplayValue
matcher code from Jest DOM: https://github.com/testing-library/jest-dom/blob/main/src/to-have-display-value.jsRelated Issues
#1454
The text was updated successfully, but these errors were encountered: