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

fix(ct): do not fail on log html elements #946

Merged
merged 2 commits into from
Jun 9, 2024

Conversation

DudaGod
Copy link
Member

@DudaGod DudaGod commented Jun 6, 2024

What is done

The problem occurs when you try to log an html element in test which use browser runner. Because html element has cyclic links and test crashes on call JSON.stringify when transferring such an element between processes.

So I use outerHTML if it exists.

Copy link
Member

@KuznetsovRoman KuznetsovRoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than that, /ok

@DudaGod DudaGod force-pushed the HERMIONE-1512.ct_log_html_elems branch from 5ce96f9 to b7323c7 Compare June 9, 2024 14:14
@DudaGod DudaGod merged commit b152038 into master Jun 9, 2024
2 checks passed
@DudaGod DudaGod deleted the HERMIONE-1512.ct_log_html_elems branch June 9, 2024 14:31
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

Successfully merging this pull request may close these issues.

2 participants