The official styles library of Symphony's design system
- Node 12+
- Yarn 1.22+
- Chrome: Latest
- Edge: Latest
Run
yarn
yarn start
In order to install and start using the library you can read the detailed guide on getting-started.md
Automated visual testing uses software to automate the process of comparing visual elements across various screen combinations to uncover visual defects.
Creevey is a Cross-browser screenshot testing tool for Storybook with a fancy UI Runner.
Requirements
- Selenium Grid
- Chromedriver
Setting Up
- Download Selenium Server.
curl -L -O https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.1.0/selenium-server-4.1.1.jar
- Configure Selenium Grid.
java -jar selenium-server-4.1.1.jar hub
- In other terminal run Selenium Node.
java -jar selenium-server-4.1.1.jar node
- Now Start storybook and then start Visual Testing Execution.
yarn start
yarn test
Update the test images
When the visual testing detects new components or changes on the existing one’s it will fail the tests. In order to fix it you will need to:
-
Download report.zip from the CircleCI build.
-
Replace on .creevey/report.
-
Execute the command below, to approve the new images.
yarn test --update
If update for DarkMode images
yarn test --config .creevey/config_darkmode.js --update
If update for DarkMode+Condensed images
yarn test --config .creevey/config_darkmode_condensed.js --update
-
Push into your PR.
NOTE: The images could be different from local env against CircleCI. In our pipelines, are able to find the report with all images during the execution into report.zip.
Read detailed guide on theming-guide.md
Read detailed guide on contribution process