-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New Select: Unit Testing #92485
New issue
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
New Select: Unit Testing #92485
Conversation
|
The issue can be solved by explicitly setting |
I tried this in combination with the mocking, issue remained. |
Interesting. That's the only change I did to the current state of the pull request, and now there is only one failing test: But no error like the previous one. |
|
|
I am sorry @KawtharAlakri , I had accidentally added the changes on top of another branch (#92284) I was working on. Disregard what I mentioned previously. Also, it should've been |
|
@tskarhed I couldn't fix the test case where clicking on item should select it, clicking is not triggering the onChange function, so I commented and updated other test cases. This PR is ready to be reviewed. |
tskarhed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general! Apply the changes mentioned below. Also, please
- Sign the Contributor License Agreement above
- Format the file by running
npx prettier packages/grafana-ui/src/components/Combobox/Combobox.test.tsx --write
|
Thank you! Could you also sign the Contributor License Agreement? |
Done |
tskarhed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! It is really appreciated 😄
* init commit * New Select test cases * click + scroll and click test cases * code format * code format

What is this feature?
Test for the New Select (Combobox)
Why do we need this feature?
Avoid bugs and regression
Who is this feature for?
Developers
Which issue(s) does this PR fix?:
Fixes some points in #92396
Special notes for your reviewer:
Please check that: