-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
testRelated to tests or testing something about the project.Related to tests or testing something about the project.
Description
Summary
There's a lot of prop inheritance going on in Grau and I think it would be pretty cool if we supported some testing to make sure things inherited properly.
We'd need to test changing root-level variables and component-level variables. Basically everything along the chain.
This would essentially be unit tests in a way.
Example:
Test buttons border radius.
- If you change the
--graupl-border-radiusprop to2rem, the buttons border radius should be2rem. - If you change the
--graupl-button-border-radiusprop to2rem, the buttons border radius should be2rem. - If you change the
--graupl-border-radiusprop to2remand the--graupl-button-border-radiusprop to3rem, the button border radius should be3rem.
We'd need to add the top/bottom/left/right checks as well, but this was we'd know what's verified to be happening.
Solution
Implement tests
Metadata
Metadata
Assignees
Labels
testRelated to tests or testing something about the project.Related to tests or testing something about the project.