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 Selenium heatmap test by using fixed figure size #2010

Merged

Conversation

Conengmo
Copy link
Member

@Conengmo Conengmo commented Oct 19, 2024

Closes #2009. Taken out of #2008.

It seems like Chrome added some UI element to the headless browser that changed the window size. It's now also inconsistent between my local machine and the CI/CD server. To fix it, I applied a fixed figure size, then crop the screenshot to the figure. That way if the window is a few tens of pixels heigher of shorter, it doesn't matter.

Pre-commit failure is unrelated, see #2011

Copy link
Collaborator

@hansthen hansthen left a comment

Choose a reason for hiding this comment

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

LGTM

@Conengmo Conengmo merged commit d9e1e9a into python-visualization:main Oct 19, 2024
10 of 12 checks passed
@Conengmo Conengmo deleted the fix-selenium-heatmap-test branch October 19, 2024 19:28
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.

Error in selenium tests when generating heatmap
2 participants