Skip to content

chore(deps): upgrade @playwright/test to 1.62.1 - #727

Merged
NilsR0711 merged 2 commits into
mainfrom
chore/691-upgrade-playwright-test
Sep 2, 2026
Merged

NilsR0711 merged 2 commits into
mainfrom
chore/691-upgrade-playwright-test

Conversation

@NilsR0711

Copy link
Copy Markdown
Owner

Problem

@playwright/test was held at ~1.61.1 in packages/streamwall-control-e2e/package.json because the 1.62.0 bump in #688 broke the E2E job before a single test ran:

Error: Failed to load tsconfig file at packages/streamwall-control-e2e/tsconfig.json:
Failed to resolve "extends" path "@tsconfig/recommended/tsconfig" referenced from packages/streamwall-control-e2e/tsconfig.json

Playwright 1.62's tsconfig loader resolves a package-style extends only inside the tsconfig's own directory's node_modules, never walking up parent directories the way Node/tsc do. Since npm hoists @tsconfig/recommended, @tsconfig/node22 and @tsconfig/node-ts to the repo root in this single-lockfile workspace, the lookup missed and Playwright 1.62.0 turned that into a hard, fatal error.

Research

  • Confirmed with npm's registry that 1.62.1 is the current latest @playwright/test release.
  • Installed 1.62.1 in a scratch directory and inspected node_modules/playwright/lib/common/index.js: resolveConfigFile still does not walk up node_modules — the underlying hoisting gap is unchanged.
  • However, the fatal behavior introduced in 1.62.0 is gone in 1.62.1. Tracked this to upstream microsoft/playwright issue #41989 ("[Regression]: tsconfig "extends" bare specifier isn't resolved via node_modules walk-up like tsc (fatal since 1.62)"), fixed by merged PR #42005 ("fix(tsconfig): do not throw when extends/references cannot be resolved"). That PR explicitly reverts the hard error rather than implementing tsc-compatible resolution — an unresolved extends is silently ignored again, matching 1.61 behavior. It shipped in @playwright/test 1.62.1 (2026-07-30).

Solution

  • Bump @playwright/test to ~1.62.1 in packages/streamwall-control-e2e/package.json (no separate playwright dependency exists elsewhere in the repo to bump).
  • Regenerate package-lock.json scoped to that workspace so the diff only touches the @playwright/test / playwright / playwright-core version triplet.
  • Remove the now-unnecessary @playwright/test ignore entry from .github/dependabot.yml.

Testing performed

  • npm ci (clean install from the regenerated lockfile)
  • npm run format:check, npm run lint, npm run typecheck (all workspaces, including streamwall-control-e2e)
  • npm run test — 2058 tests across all 6 suites, all passing
  • packages/streamwall-control-e2e: npx playwright install chromium && npm run test:e2e — 17/17 passing, no tsconfig resolution error

No production code changed, so no new tests were added — this is a dependency bump plus a CI-config cleanup, verified by the full existing suite (including the previously-broken E2E job) passing locally.

Risks / breaking changes

None expected. The upstream hoisting gap itself (no node_modules walk-up for package-style extends) is still open, but it's harmless again: an unresolved extends is silently skipped rather than aborting spec collection, exactly as it behaved on 1.61.1.

Pre-PR review

Three independent review rounds by fresh subagents with no prior context:

  • Round 1: found package-lock.json had incidentally dropped "libc" metadata fields on unrelated optional platform packages (@rolldown/binding-linux-*, lightningcss-linux-*), caused by a local npm-version formatting difference when the lockfile was rewritten. Fixed by restoring those fields so the lockfile diff is scoped strictly to the playwright triplet.
  • Round 2: found the same root cause had also re-escaped three literal "GitHub Sponsors ❤" strings elsewhere in the lockfile. Fixed by restoring the literal character.
  • Round 3: NO FINDINGS.

No findings were dismissed as invalid; all were valid and fixed.

Closes #691

@NilsR0711
NilsR0711 force-pushed the chore/691-upgrade-playwright-test branch 2 times, most recently from 2b29504 to 765fa04 Compare September 2, 2026 10:50
Playwright reverted the hard failure on unresolved tsconfig `extends`
paths in 1.62.1 (microsoft/playwright#42005, fixing #41989/#41998):
an unresolved bare-specifier `extends` is silently ignored again
instead of aborting spec collection, matching 1.61 behavior. The
hoisted-package resolution gap itself is still open upstream (no
node_modules walk-up), but it no longer breaks the E2E job.

Verified locally: `tsc --noEmit` and the full `playwright test` suite
(17/17) both pass against the hoisted @tsconfig/* bases.

Drops the now-unnecessary @playwright/test ignore entry from
dependabot.yml so future updates aren't skipped.

Closes #691
The repo-invariant test added alongside the dependabot.yml group split
asserted that the @playwright/test ignore entry stays in place. That
entry is exactly what #691 removes now that the upstream tsconfig
regression is gone, so assert the opposite: the entry must not linger.
@NilsR0711
NilsR0711 force-pushed the chore/691-upgrade-playwright-test branch from 765fa04 to 2fef00f Compare September 2, 2026 11:32
@NilsR0711
NilsR0711 merged commit 1678ed5 into main Sep 2, 2026
36 of 38 checks passed
@NilsR0711
NilsR0711 deleted the chore/691-upgrade-playwright-test branch September 2, 2026 11:43
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.

chore(deps): upgrade @playwright/test to 1.62+ once its tsconfig extends resolver handles hoisted packages

1 participant