Automated styling testing?

Hi there, I was wondering what's the common practice when it comes to testing the style of your whole website. What I mean is, there are libraries like react-library-testing/cypress that can carry out multiple tests in order to check if something on a different part of the website was broken in the process, checks if a button no longer exists or doesn't open a popup, etc. Is it possible to do that with styles? I'm thinking maybe a Puppeteer script that takes screenshots of all the pages in your website and tells you what parts started having a different size/font-weight/visual position, etc.
3 Replies
Jochem
Jochem2y ago
You might be looking for storybook: https://storybook.js.org/
Storybook: Frontend workshop for UI development
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It’s open source and free.
Jochem
Jochem2y ago
it's much bigger than what you're describing, but it will also do testing on UI elements
Muhct
MuhctOP2y ago
Awesome, thanks! I'll check that out
Want results from more Discord servers?
Add your server