Skip to content

Commit

Permalink
Merge pull request #3903 from Sage/chromatic_documentation
Browse files Browse the repository at this point in the history
docs: add info about chromatic for major branch
  • Loading branch information
DlgSHi authored Apr 13, 2021
2 parents b4ed5fc + e6cfa9a commit 60a5748
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/testing-styleguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ Where functionality is already tested in unit testing, this does not need to be

[Chromatic](https://www.chromatic.com/builds?appId=5ecf782fe724630022d27d7d) is used to test for visual regressions during each build by comparing snapshots of the storybook canvas with previous baseline snapshots. Chromatic automatically snapshots every story canvas. You should not need to run Chromatic locally.

For releasing a group of `BREAKING CHANGES` we agreed to create a `major/**` branch to avoid draining `chromatic` resources. After creating the `major/**` branch we need to run `git checkout major/**` and run `npx chromatic --project-token=CHROMATIC_PROJECT_TOKEN` to manually trigger a `chromatic` build on the `major/**` branch to perform a comparison with `master`. It allows us to merge the `BREAKING CHANGES` into the `major/**` branch without running `chromatic`.

##### Cypress File Structure
```
.
Expand Down

0 comments on commit 60a5748

Please sign in to comment.