Is there a way to import and use css variables? #28080
Unanswered
lucasfelber
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Basically I am checking if elements have the right color but I don't want my tests to break if I change colors in the css. For my app im using a global css file with variables like:
and use them in code like:
var(--dark-green)
Can I somehow import my css file to a cypress test and use it's variables?
Beta Was this translation helpful? Give feedback.
All reactions