mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-01-09 07:11:20 +08:00
### The problem We currently do not have UI tests on a component level. Integrating snapshot tests would allow us to have peace of mind with each PR that it isn't going to introduce any changes to the UI unless its intended to. ### The solution * Integrate `ios-snapshot-test-case` pod to handle generating and diffing images of components. * Integrate `git-lfs` to handle storage of the goldens. This PR creates one test to showcase the ability to do snapshot tests. Upon merging this PR, you must install git-lfs in order to properly have the images pulled down. The 3 steps to do this: 1. `brew install git-lfs` 2. `git lfs install` 3. `git lfs pull` Additionally, the golden is generated using an iOS 11 simulator at 2x scale so that the kokoro jobs are happy. ### Related bugs Closes #5740
2 lines
67 B
Plaintext
2 lines
67 B
Plaintext
snapshot_test_goldens/**/*.png filter=lfs diff=lfs merge=lfs -text
|