twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
GNU Affero General Public License v3.0
16.67k stars 1.97k forks source link

[Storybook Testing] Improve Storybook Pages Coverage #7653

Open charlesBochet opened 2 hours ago

charlesBochet commented 2 hours ago

Context

We are improving storybook coverage on packages/twenty-front/src/pages which are our pages entrypoint. This stories catch bugs/regressions as:

How to work on a story

We have a storybook testing suite that you can run using the following commands:

  1. build and serve the stories on localhost:6006: npx nx run twenty-front:storybook:serve:dev --configuration=pages. This will generate something very similar to: https://647862655ef7071d35328bb2-ekyqijyxck.chromatic.com/
  2. You can run the overall storybook headless testing by running: npx nx run twenty-front:storybook:test --configuration=pages. This will run ALL the stories. This will also output a coverage in packages/twenty-front/coverage/storybook/lcov-report/index.html (feel free to open this file with your browser for easy navigation)

Tips:

What to do

Faisal-imtiyaz123 commented 2 hours ago

@charlesBochet Please assign me.

charlesBochet commented 2 hours ago

Thank you @Faisal-imtiyaz123

charlesBochet commented 2 hours ago

Could you start by investigating what pages are not covered? Depending on that we can scope the oss.gg points too :)

Faisal-imtiyaz123 commented 2 hours ago

@charlesBochet Sure.