Skip to content
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

[Question] Does phl print #shadow-root? #57

Open
dereklin opened this issue Nov 4, 2022 · 4 comments
Open

[Question] Does phl print #shadow-root? #57

dereklin opened this issue Nov 4, 2022 · 4 comments

Comments

@dereklin
Copy link

dereklin commented Nov 4, 2022

I am currently debugging a jest test where I am using phl on a component that renders a web component that uses #shadow-root. I am not seeing any #shadow-root or its children when using phl.

I am wondering if phl will print out #shadow-root like how it is displayed in chrome dev tool. (the web component might not be rendered correctly in the test)

@dereklin
Copy link
Author

dereklin commented Nov 4, 2022

Looks like it doesn't. I was able to get more output using:

console.log(webComponent.nativeElement.shadowRoot.innerHTML);

@kreuzerk
Copy link
Member

kreuzerk commented Nov 6, 2022

Thx a lot for reporting this. Can you try if it works when you enable comments printing?
phl(fixture, true);

@dereklin
Copy link
Author

dereklin commented Nov 7, 2022

Hi @kreuzerk , phl(fixture, true) is not printing out the shadowRoot either

@pct-cclausen
Copy link

I am also looking for this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants