-
Notifications
You must be signed in to change notification settings - Fork 1
/
.percyrc
41 lines (41 loc) · 1.81 KB
/
.percyrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: 2
discovery:
disable-cache: true
snapshot:
percy-css: |
img {
visibility: hidden;
}
storybook:
exclude:
# What should be excluded?
# - Anything that is simply a representation of a base or "primitive" token
# should be excluded. They will be represented in the larger components that
# implement them anyway.
# - Anything where the StoryBook display is dynamic (meaning it
# automatically updates when new tokens are added upstream) like the colors,
# we don't want updates in the tokens repo to flag a regression here unless
# it changes an existing molecule/organism etc.
- 'Config: [a-zA-Z]+'
- 'Tokens/Breakpoints: Breakpoints'
- 'Tokens/Colors: Colors'
- 'Tokens/Effects: [a-zA-Z]+' # Effects are dynamically generated.
- 'Tokens/Spacing: Spacing'
# Type Faces/Scales are used directly and only by Heading/Body Styles. So,
# there isn't much need to test them in isolation.
- 'Tokens/Typography: \b(Type Faces|Type Scale)\b'
# Images are random so we're hiding them with `percy-css`. So, in isolation
# The only thing we'd be testing is the documentation around them.
# Icons are dynamically generated
- 'Atoms/Images: [a-zA-Z]+'
- 'Molecules/Alert: Alert'
- 'Molecules/Embed: Embed'
# The Footer and Header organisms demo all of their color options in the
# respective "Examples" story, so we can skip the base ones with controls.
- 'Organisms/Site/Footer: Footer'
- 'Organisms/Site/Header: Header'
# The Placeholder is a Storybook only component. Not worth testing.
- 'Page Layouts/Utility: Place Holder'
# The smallest vertical padding change at the top of a page causes apparent
# regressions throughout. So, testing full pages isn't very helpful.
- 'Page Examples/Page Examples: [a-zA-Z]+'