Skip to content

fix(create-plugin): pin @playwright/test to 1.61.x - #2806

Open
tolzhabayev wants to merge 1 commit into
mainfrom
fix/pin-playwright-1-61
Open

fix(create-plugin): pin @playwright/test to 1.61.x#2806
tolzhabayev wants to merge 1 commit into
mainfrom
fix/pin-playwright-1-61

Conversation

@tolzhabayev

@tolzhabayev tolzhabayev commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Playwright 1.62 made unresolvable tsconfig extends paths a fatal error (microsoft/playwright#41571). Its config loader can't resolve the package specifier in the scaffolded "extends": "@grafana/tsconfig", it only probes paths relative to the extending file, so playwright test now crashes on startup for every scaffolded plugin that floats to 1.62. Before 1.62 the unresolved extends was silently swallowed, which is why this never surfaced.

This pins @playwright/test to ~1.61.1 in the template and adds a migration so existing plugins pick up the pin through create-plugin update. Plugins already on a 1.62+ range are left untouched.

Upstream regression report: microsoft/playwright#41989. The pin comes off once that's resolved, tracked in #2805.

Which issue(s) this PR fixes:

Part of #2805 (stays open to track removing the pin)

Special notes for your reviewer:

First seen in grafana/grafana-plugin-examples#721 where all five e2e matrix jobs fail with Failed to resolve "extends" path "@grafana/tsconfig". Verified by scaffolding a plugin from this branch: @playwright/test resolves to 1.61.1 and playwright test --list loads the config and tests cleanly.

@tolzhabayev tolzhabayev self-assigned this Jul 27, 2026
@tolzhabayev
tolzhabayev marked this pull request as ready for review July 27, 2026 10:24
@tolzhabayev
tolzhabayev requested a review from a team as a code owner July 27, 2026 10:24
@tolzhabayev
tolzhabayev requested review from eledobleefe and jackw and removed request for a team July 27, 2026 10:24
@grafana-catalog-project-bot grafana-catalog-project-bot Bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔬 In review

Development

Successfully merging this pull request may close these issues.

1 participant