Skip to content
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

[Tabs] Add partial unit tests #2035

Closed
wants to merge 4 commits into from

Conversation

silversonicaxel
Copy link

Description

Added partial unit tests reagrding the Tabs component, related to issue #2034

@chaance
Copy link
Member

chaance commented Aug 16, 2024

Sorry no one got back to you on this! I'm going to close this for now. Philosophically I don't think we should test implementation details, so I think this is better handled in our UI tests.

@chaance chaance closed this Aug 16, 2024
@silversonicaxel
Copy link
Author

ah, ok, fine by me, but, why not?

@chaance
Copy link
Member

chaance commented Aug 19, 2024

Because implementation details may change and are not relevant to our end users. Whether or not we fire a click event or a series of other events under the hood is an implementation detail. Our UI tests can better simulate what an actual user does, which is limited in a virtual DOM environment unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants