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: save with latest google chrome #425

Merged
merged 6 commits into from
Aug 30, 2024
Merged

fix: save with latest google chrome #425

merged 6 commits into from
Aug 30, 2024

Conversation

machow
Copy link
Collaborator

@machow machow commented Aug 30, 2024

This PR is to address #424

The challenge was that our resizing set the browser outer dimensions, but this does not account for space taken up by browser UI elements (which vary by browser). We had a "crud factor" set that basically accounted for this space by blissful accident.

.save() now explicitly tries to calculate the space between outer and inner browser dimensions, with a much smaller crud factor (to create some small padding around the table. This is important because table borders without crud factor might cause issues).

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.37%. Comparing base (0422164) to head (ae9624b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #425   +/-   ##
=======================================
  Coverage   86.37%   86.37%           
=======================================
  Files          42       42           
  Lines        4681     4683    +2     
=======================================
+ Hits         4043     4045    +2     
  Misses        638      638           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot temporarily deployed to pr-425 August 30, 2024 14:01 Destroyed
@github-actions github-actions bot temporarily deployed to pr-425 August 30, 2024 14:46 Destroyed
@github-actions github-actions bot temporarily deployed to pr-425 August 30, 2024 14:54 Destroyed
@github-actions github-actions bot temporarily deployed to pr-425 August 30, 2024 15:50 Destroyed
@github-actions github-actions bot temporarily deployed to pr-425 August 30, 2024 15:56 Destroyed
@machow machow marked this pull request as ready for review August 30, 2024 16:00
@machow machow requested a review from rich-iannone August 30, 2024 16:00
@machow
Copy link
Collaborator Author

machow commented Aug 30, 2024

@rich-iannone do you mind checking the uploaded screenshots when you review? They're tucked intot he "Test for saving table image..." gh action...

image

@machow
Copy link
Collaborator Author

machow commented Aug 30, 2024

When it's time, let's squash and merge this so the orphan commit isn't in our history

Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

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

LGTM!

@machow machow merged commit 11660a6 into main Aug 30, 2024
13 checks passed
@rich-iannone rich-iannone deleted the fix-webdriver branch August 30, 2024 17:31
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