-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Storybook Testing] Main issue: Improve Storybook Component Coverage #7491
Comments
Hi, @charlesBochet I was trying to run the tests locally but it failed. Is there any prerequisites to run this locally? As I don't change anything beside the component I'm working on. Ran this on W11, WSL2. The PR I'm working on #7580 |
/assign |
1 similar comment
/assign |
@rizdarmwn this is weird, what tests are failing? |
Some components are straight up do not showing. Some are timed out. This is on |
That's weird as they are passing on the CI
and then browse the story on localhost:6006, go to MatchingPersonCompanyActivityCreateNavigate story and send me a screenshot of what you see / check dev console / inspect your network tab |
Context
We are improving storybook coverage on
packages/twenty-front/src/modules
which is most of our frontend. This stories catch bugs/regressions in two ways:How to work on a story
We have a storybook testing suite that you can run using the following commands:
npx nx run twenty-front:storybook:serve:dev --configuration=modules
. This will generate something very similar to: https://647862655ef7071d35328bb2-ekyqijyxck.chromatic.com/npx nx run twenty-front:storybook:test --configuration=modules
. This will run ALL the stories. This will also output a coverage inpackages/twenty-front/coverage/storybook/lcov-report/index.html
(feel free to open this file with your browser for easy navigation)Tips:
cd packages/twenty-front
+npx @storybook/test-runner <path of the story file>
What to do
Sub-issue list
The text was updated successfully, but these errors were encountered: