Skip to content

fix: merge .percy.yml config options with snapshot options for serializeDOM#223

Open
rishigupta1599 wants to merge 1 commit into
masterfrom
fix/merge-percy-yml-config-with-serialize-dom
Open

fix: merge .percy.yml config options with snapshot options for serializeDOM#223
rishigupta1599 wants to merge 1 commit into
masterfrom
fix/merge-percy-yml-config-with-serialize-dom

Conversation

@rishigupta1599
Copy link
Copy Markdown
Contributor

Summary

  • Config options from .percy.yml (like widths, minHeight, enableJavaScript, etc.) were not being passed to PercyDOM.serialize()
  • Only per-snapshot options were used for DOM serialization
  • Now merges both, with per-snapshot options taking priority

Changes

  • Merge data['config']['snapshot'] with kwargs before calling get_serialized_dom() and capture_responsive_dom()

Test plan

  • Existing tests pass
  • Verify .percy.yml config options are applied during DOM serialization

🤖 Generated with Claude Code

…izeDOM

Config options from .percy.yml (like widths, minHeight, enableJavaScript, etc.)
were not being passed to PercyDOM.serialize(). Only per-snapshot options were used.
Now merges both, with per-snapshot options taking priority.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@rishigupta1599 rishigupta1599 requested a review from a team as a code owner May 5, 2026 19:20
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions Bot added the 🍞 stale Closed due to inactivity label May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍞 stale Closed due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant