Skip to content

Upgrade to Playwright 1.65 and run the inset screenshot tests again - #91

Merged
CSSFrancis merged 1 commit into
mainfrom
deps/playwright-1.65
Dec 3, 2026
Merged

CSSFrancis merged 1 commit into
mainfrom
deps/playwright-1.65

Conversation

@CSSFrancis

Copy link
Copy Markdown
Owner

Follow-up to #90. That PR pinned the Playwright jobs to ubuntu-24.04 because Playwright 1.58 cannot install Chromium on Ubuntu 26.04. This PR upgrades Playwright instead and removes the pin.

Playwright 1.58 → 1.65.3. 1.62 is the first release that supports Ubuntu 26.04. The CI, docs and tests workflows go back to ubuntu-latest.

Screenshots. On the same machine, the new Chromium renders all 31 committed baselines byte-for-byte the same as 1.58, so those files are untouched. Regenerating them locally would only swap one operating system's text rendering for another's, which accounts for the 1–1.5% of pixels that already differ between platforms.

Inset screenshot tests were silently skipped. When test_inset.py moved into test_layouts/, it kept looking for baselines in test_layouts/baselines/, found none, and skipped all six tests. It now reads tests/baselines/ like test_visual.py. The committed inset baselines predated the current plot margins and tick labels (1.00 is now 1), and about 55% of their pixels differed, so they are regenerated.

Local run on Windows: 2611 passed, 58 skipped.

Playwright 1.62 is the first release that installs Chromium on Ubuntu
26.04, so the Linux jobs go back to ubuntu-latest.

The new Chromium draws every committed baseline byte-for-byte the same as
1.58 did, so those baselines are unchanged.

The inset screenshot tests read their baselines from test_layouts/baselines
after the file moved, found nothing, and skipped. They now read
tests/baselines with the other visual tests. The baselines there predated
the current margins and tick labels, so they are regenerated.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.08%. Comparing base (2c6db86) to head (2906241).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #91   +/-   ##
=======================================
  Coverage   92.07%   92.08%           
=======================================
  Files          42       42           
  Lines        5489     5493    +4     
=======================================
+ Hits         5054     5058    +4     
  Misses        435      435           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CSSFrancis
CSSFrancis merged commit 8a36772 into main Dec 3, 2026
28 of 30 checks 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