-
Notifications
You must be signed in to change notification settings - Fork 150
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
test: add ButtonGroup test cases #2068
test: add ButtonGroup test cases #2068
Conversation
|
Bundle Size ReportUpdated Components
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit fca7b9b:
|
bcc3fa9
to
6b21d18
Compare
✅ PR title follows Conventional Commits specification. |
6b21d18
to
3f8cbdf
Compare
f6291c1
to
206b1d3
Compare
3f8cbdf
to
9e6363e
Compare
<Button>Three</Button> | ||
</ButtonGroup>, | ||
); | ||
expect(container).toMatchSnapshot(); |
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.
maybe use .toHaveStyle
to assert over specific style instead of full snapshot? lots of snapshots in this test
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.
I feel snapshots are fine, Button tests also have a similar pattern.
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.
Can we add Storybook kitchen sink for visual regression testing?
_KitchenSink.ButtonGroup.stories
60fffb7
to
009523b
Compare
9e6363e
to
fca7b9b
Compare
Have already added it in the implementation PR. |
eb5283b
into
feat/add-button-group-component
test: add ButtonGroup test cases (#2068)
test: add ButtonGroup test cases (#2068)
Test cases for
ButtonGroup
.