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

Update screenshot match logic #222

Merged
merged 6 commits into from
Oct 25, 2024
Merged

Update screenshot match logic #222

merged 6 commits into from
Oct 25, 2024

Conversation

yijie-yang
Copy link
Collaborator

No description provided.

def matched_images(
actual_image_path, expected_image_path, threshold_ratio: int = 0.4
actual_image_path: Path, expected_image_path: Path, threshold: float = 0.005
Copy link
Collaborator

Choose a reason for hiding this comment

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

40/(1280*720)=0.000043, so maybe set threshold this to this number?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

@yijie-yang yijie-yang merged commit a63165a into main Oct 25, 2024
3 checks passed
@yijie-yang yijie-yang deleted the playwright branch October 25, 2024 22:14
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