Skip to content

chore(site): refactor stories and test from page components #9603

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

Merged
merged 31 commits into from
Sep 8, 2023

Conversation

BrunoQuaresma
Copy link
Collaborator

  • Update Storybook usage to use v7 API
  • Remove render tests from integration tests and move them to stories

@BrunoQuaresma BrunoQuaresma self-assigned this Sep 8, 2023
@BrunoQuaresma BrunoQuaresma force-pushed the bq/review-storybook-pages branch from 68d7833 to 2f55e6b Compare September 8, 2023 15:40
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like tons of good stuff in here! Having Chromatic compare stories will definitely be a better solution than some of these tests getting removed.

Comment on lines +14 to +22
children: [
<Cond key="1" condition>
The first one shows.
</Cond>,
<Cond key="2" condition={false}>
The second one does not show.
</Cond>,
<Cond key="3">The default does not show.</Cond>,
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I liked the earlier commit where these were fragments: React will perform better with those. Does it break the ChooseOne component or something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nops, it is just for the storybook. I didnt find a similar API to keep it as a fragment in the new Storybook v7 API

@BrunoQuaresma BrunoQuaresma merged commit 554ddb1 into main Sep 8, 2023
@BrunoQuaresma BrunoQuaresma deleted the bq/review-storybook-pages branch September 8, 2023 18:14
@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants