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
Copy file name to clipboardExpand all lines: docs/guides/automated-tests.md
+61-1
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,68 @@ One of the advantages of `render_patterns` is the ability for you to test the pa
28
28
29
29
## Visual regression testing
30
30
31
-
Pattern libraries are a natural fit for automated visual regression tests. Check out [BackstopJS](https://github.com/garris/BackstopJS) to get started.
31
+
Pattern libraries are a natural fit for automated visual regression tests. Here is an example [BackstopJS](https://github.com/garris/BackstopJS) configuration file:
Try this out by saving the file as `backstop.json`, then:
64
+
65
+
```sh
66
+
npm install -g backstopjs
67
+
backstop test
68
+
```
32
69
33
70
## Accessibility testing
34
71
35
72
Here as well, pattern libraries are a natural fit, due to them providing the test data, and making it possible to test components in isolation. Have a look at [Pa11y](https://pa11y.org/) or [Lighthouse CI](https://github.com/GoogleChrome/lighthouse-ci) to get started.
0 commit comments