You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adapt all Chromatic tests to the new visual tests using the utility functions. Keep the Chromatic tests during migration (We could clean up Chromatic specific stories when the new tests successfully elaborated and everything is migrated.)
Try to avoid unnecessary screenshots
As a base rule, every viewport should be included. However we have a lot of components where e.g. only viewport sizes make sense to tests (e.g. button)
Only test states that makes sense (e.g. no active state if there is non implemented...)
Helpful Commands
Run all tests: FORCE_LOCAL=true yarn test:visual-regression --watch (start tests on local machine (not Container))
Run specific file: yarn test:visual-regression --file=$FileDirRelativeToProjectRoot$/$FileName$
start:visual-regression-app (has to be restarted after every run)
The text was updated successfully, but these errors were encountered:
jeripeierSBB
changed the title
Refactoring: Migration of visual regression tests
Refactoring: Migration of visual regression tests and testfile restructering
Jun 10, 2024
For every component we would like to:
Helpful Commands
FORCE_LOCAL=true yarn test:visual-regression --watch
(start tests on local machine (not Container))yarn test:visual-regression --file=$FileDirRelativeToProjectRoot$/$FileName$
start:visual-regression-app
(has to be restarted after every run)Component list
compoent.visual.spec.ts
boilerplate @DavideMininni-Fincons chore: add visual.spec.ts to boilerplate #2910The text was updated successfully, but these errors were encountered: