cypress-lit icon indicating copy to clipboard operation
cypress-lit copied to clipboard

support scss as well as css

Open ShellyDCMS opened this issue 2 years ago • 2 comments

Could you please add support for scss files, with emphasis on multiple files, as each component may have it's individual styling?

ShellyDCMS avatar Feb 25 '23 16:02 ShellyDCMS

@ShellyDCMS

I would need more information on what you are trying to achieve in order to help.

In general, this library is not part of your bundling/transpiling tool chain, it should only interact with the output.

simonireilly avatar Mar 18 '23 07:03 simonireilly

@simonireilly When I follow this example with a lit component using css, it works fine. When I try it for a component with scss, I get this error in cypress: (uncaught exception) TypeError: Failed to set the 'adoptedStyleSheets' property on 'ShadowRoot': Failed to convert value to 'CSSStyleSheet'. image

I failed to find a working example of lit component with scss and cypress component testing. Would appreciate any pointers.

ShellyDCMS avatar Mar 19 '23 03:03 ShellyDCMS