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

Allow snapshot strategy to be configured #11

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Conversation

lencioni
Copy link
Contributor

This matches the snapshotStrategy option we recently added to happo-cypress:

happo/happo-cypress#122

The clip strategy means the whole DOM is included in the snapshot, and happo workers will clip the screenshot based on where the [data-happo-clip] element is located. This data attribute is added by happo-e2e when using the clip snapshot strategy:

happo/happo-e2e#54

@lencioni lencioni requested a review from trotzig January 24, 2025 18:53
This matches the `snapshotStrategy` option we recently added to
happo-cypress:

happo/happo-cypress#122

The clip strategy means the whole DOM is included in the snapshot, and
happo workers will clip the screenshot based on where the
`[data-happo-clip]` element is located. This data attribute is added by
happo-e2e when using the clip snapshot strategy:

happo/happo-e2e#54
@lencioni lencioni force-pushed the snapshot-strategy-clip branch from 286b994 to dc57eeb Compare January 24, 2025 18:59
@lencioni lencioni merged commit 4973a94 into main Jan 28, 2025
1 check passed
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