-
Notifications
You must be signed in to change notification settings - Fork 48
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
page.evaluate: TypeError: Cannot read properties of null (reading 'sheet') at serializeCSSOM #1168
Comments
@branislav-remen can you share a reproducible html page with shadow dom? |
for example: Heading (on top of the page) and Button (on bottom) use shadow dom. |
@branislav-remen can you give v1.19.1-alpha.0 a try? |
@itsjwala it works with v1.19.1-alpha.0 👍 Thank you. 👏 But I see some warnings not related to the topic of this issue:
how can I rid of this second warning? |
Hey @branislav-remen glad this is fixed for you.
rm node_modules/@percy/cli/.releases
I'm closing this issue as the original 🐛 is fixed, please feel free to open another issue/discussion thread if you face any problems, and thanks for reporting the bug 😄 ! |
The problem
After last update of
@percy/cli
I get errorpage.evaluate: TypeError: Cannot read properties of null (reading 'sheet') at serializeCSSOM
when runningpercy exec ...
script.Environment
@percy/cli
version: 1.19.0-alpha.0Details
We are using component library which uses Shadow DOM. After upgrade of your CLI to try Shadow DOM support it is not working. The same code works with previous version of cli 1.17.0.
We are using Playwright test runner.
Running playwright test script (without percy exec) works. (
playwright test visualRegression
).Debug logs
Code to reproduce issue
percy.yml:
test script:
"test:percy": "percy exec -- playwright test visualRegression",
Example of test:
Playwright config (I also tried default config and it doesn't work):
The text was updated successfully, but these errors were encountered: