-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to test components with ViewEncapsulation.ShadowDom? #290
Comments
Hi, thanks for raising this issue. |
Hey @2YY, I had the same problem and I solved using this library ( |
Is there any news on this topic? The tracked issue in DOM testing library has not been updated since 2022. |
As a workaround, we override the view encapsulation of our Shadow Dom components for test.
Here is the override function:
|
Hi, I'm testing component that used as WebComponent (Angular Element).
And I want to enable shadow DOM encapsulation.
But if shadow DOM encapsulation is enabled, Angular Testing Library seems failed find elements in shadow DOM.
Is there anything I can solve this problem?
Thanks.
The text was updated successfully, but these errors were encountered: