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

test(e2e): handle sanpshot's size mismatch #2670

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Conversation

fshovchko
Copy link
Contributor

After test run of a new snapshot matcher implementation, it was discovered that reports became less informative.
The most important things are:

  • Missing reports on when two snapshot have mismatching size
  • Error messages are less informative

@fshovchko fshovchko added needs review The PR is waiting for review e2e labels Sep 19, 2024
@fshovchko fshovchko requested a review from a team September 19, 2024 13:22
@fshovchko fshovchko self-assigned this Sep 19, 2024
@fshovchko fshovchko requested review from dshovchko, yadamskaya and abarmina and removed request for a team September 19, 2024 13:22
Comment on lines +47 to +50
top: Math.floor(padY),
bottom: Math.ceil(padY),
left: Math.floor(padX),
right: Math.ceil(padX),
Copy link
Collaborator

Choose a reason for hiding this comment

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

TODO: Align to top/left

const targetWidth = Math.max(metadata1.width!, metadata2.width!);
const targetHeight = Math.max(metadata1.height!, metadata2.height!);

const padImage = async (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Separate method instead of anonymous function

@ala-n ala-n merged commit da3fb97 into main-beta Oct 21, 2024
7 checks passed
@ala-n ala-n deleted the e2e/size-mismatch branch October 21, 2024 03:47
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2024
@ala-n
Copy link
Collaborator

ala-n commented Oct 21, 2024

🎉 This PR is included in version 5.0.0-beta.37 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
e2e needs review The PR is waiting for review released on @beta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants