Skip to content

Update playwright - #1068

Merged
prushforth merged 2 commits into
Maps4HTML:mainfrom
prushforth:update-playwright
Oct 30, 2026
Merged

prushforth merged 2 commits into
Maps4HTML:mainfrom
prushforth:update-playwright

Conversation

@prushforth

Copy link
Copy Markdown
Member

No description provided.

Peter Rushforth added 2 commits October 30, 2026 10:31
Update release notes to latest

Get rid of slop from instructions to the best of my ability

Update nvm version -> 22

Update package-lock.json

Fix floating-point precision in context menu tests

Replace exact equality (.toEqual) with approximate comparison (.toBeCloseTo)
for floating-point coordinate values. This resolves intermittent test failures
caused by tiny precision differences that arise from:
- Node.js version changes affecting V8 optimizations
- Different floating-point rounding in coordinate transformations
- Dependency version updates

Using toBeCloseTo with 6 decimal places (±0.0000005) provides meaningful
validation while tolerating expected numerical variance. This pattern is
already used in other coordinate comparison tests like axisInferring.test.js.

Fixes: Coordinate precision errors in 'Context menu, back item' and
'Context menu, forward item' tests.

Upgrade playwright (and consequently chromium).
Fix / update broken tests mostly due to changes in last digits of coordinates returned by browser, and a few flakes

de-flake long standing flaky tests
…rs at npm >=12.0.0 when installing dependencies from git repos i.e.

"$ npm install
npm error code EALLOWGIT
npm error Fetching packages of type "git" have been disabled
npm error Refusing to fetch "proj4leaflet@git+ssh..."
@prushforth
prushforth merged commit c50003d into Maps4HTML:main Oct 30, 2026
1 check 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.

1 participant