-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor(refs T29004): re-add label tests #591
Conversation
- the label tests (that were disabled after refactoring the label props to be a single object) are fixed and enabled again - some more tests that were disabled in DpInput.spec.js for unknown reasons are enabled again as well
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!
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.
Why do we have to run the label tests in all other component tests, too? isn't it sufficient to test the label component for itself?
That's a very good question. By running them in other components we ensure that the props are passed properly from the outer component to DpLabel, but maybe that's not really the purpose of unit tests? |
As |
I'm not sure I understand your concern. Why is it better to pass the props as a parameter? |
Thanks for clarifying the |
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.
lgtm
Ticket: https://yaits.demos-deutschland.de/T29004
How to test
Run the tests, there should be no error